From 9f8fed1a2b68fc10dd271d3c43586cbddbd850e1 Mon Sep 17 00:00:00 2001 From: m5050 Date: Thu, 9 Jan 2025 23:43:41 +0300 Subject: [PATCH] adding "client_max_body_size" setting --- core/files/entrypoint_nginx.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/files/entrypoint_nginx.sh b/core/files/entrypoint_nginx.sh index 9c67626..196ef53 100755 --- a/core/files/entrypoint_nginx.sh +++ b/core/files/entrypoint_nginx.sh @@ -225,6 +225,10 @@ init_nginx() { echo "... adjusting 'fastcgi_connect_timeout' to ${FASTCGI_CONNECT_TIMEOUT}" sed -i "s/fastcgi_connect_timeout .*;/fastcgi_connect_timeout ${FASTCGI_CONNECT_TIMEOUT};/" /etc/nginx/includes/misp + # Adjust maximum allowed size of the client request body + echo "... adjusting 'client_max_body_size' to ${NGINX_CLIENT_MAX_BODY_SIZE}" + sed -i "s/client_max_body_size .*;/client_max_body_size ${NGINX_CLIENT_MAX_BODY_SIZE};/" /etc/nginx/includes/misp + # Adjust forwarding header settings (clean up first) sed -i '/real_ip_header/d' /etc/nginx/includes/misp sed -i '/real_ip_recursive/d' /etc/nginx/includes/misp