From e1174fa4aec29e2f4073ea00879f313643e1128e Mon Sep 17 00:00:00 2001 From: Aaron W Morris Date: Tue, 22 Aug 2023 11:22:41 -0400 Subject: [PATCH] apache and nginx tuning to allow large uploads --- docker/nginx.local.conf | 4 ++++ service/apache_indi-allsky.conf | 4 ++++ service/nginx_astroberry_ssl | 3 +++ 3 files changed, 11 insertions(+) diff --git a/docker/nginx.local.conf b/docker/nginx.local.conf index d50061951..ac17ea392 100644 --- a/docker/nginx.local.conf +++ b/docker/nginx.local.conf @@ -14,6 +14,8 @@ server { rewrite ^/$ /indi-allsky; + client_max_body_size 1024M; + location /indi-allsky/images { alias %INDIALLSKY_IMAGE_FOLDER%; @@ -72,6 +74,8 @@ server { rewrite ^/$ https://$host/indi-allsky; + client_max_body_size 1024M; + location /indi-allsky/images { alias %INDIALLSKY_IMAGE_FOLDER%; diff --git a/service/apache_indi-allsky.conf b/service/apache_indi-allsky.conf index db7e6051d..b55fb797e 100644 --- a/service/apache_indi-allsky.conf +++ b/service/apache_indi-allsky.conf @@ -12,6 +12,8 @@ Listen *:%HTTPS_PORT% RewriteRule "^/$" "/indi-allsky/" [R] + TimeOut 180 + LimitRequestBody 1073741824 ProxyPreserveHost On ProxyPass /indi-allsky/static ! @@ -54,6 +56,8 @@ Listen *:%HTTPS_PORT% RewriteEngine On RewriteRule "^/$" "/indi-allsky/" [R] + TimeOut 180 + LimitRequestBody 1073741824 ProxyPreserveHost On ProxyPass /indi-allsky/static ! diff --git a/service/nginx_astroberry_ssl b/service/nginx_astroberry_ssl index 554798db5..fa27740aa 100644 --- a/service/nginx_astroberry_ssl +++ b/service/nginx_astroberry_ssl @@ -14,6 +14,7 @@ server { rewrite ^/$ /indi-allsky; + client_max_body_size 1024M; location /indi-allsky/images { alias %IMAGE_FOLDER%; @@ -73,6 +74,8 @@ server { rewrite ^/$ https://$host/indi-allsky; + client_max_body_size 1024M; + location /indi-allsky/images { alias %IMAGE_FOLDER%;