diff --git a/abra.sh b/abra.sh index 76db0c5..d1aeafb 100644 --- a/abra.sh +++ b/abra.sh @@ -1,6 +1,6 @@ # shellcheck disable=SC2034,SC2145 -export NGINX_CONFIG_VERSION=v8 +export NGINX_CONFIG_VERSION=v9 export APP_ENTRYPOINT_VERSION=v7 sub_npm() { diff --git a/nginx.conf.tmpl b/nginx.conf.tmpl index 95e59e3..26c9a20 100644 --- a/nginx.conf.tmpl +++ b/nginx.conf.tmpl @@ -179,7 +179,9 @@ http { proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; - + + # Prevent too much proxying, which results in high disk write IO + proxy_max_temp_file_size 50M; proxy_limit_rate 5M; proxy_pass http://backend;