diff --git a/k8s/iabweb/nginx-default.conf b/k8s/iabweb/nginx-default.conf index 0ef16a12..5e3240b4 100644 --- a/k8s/iabweb/nginx-default.conf +++ b/k8s/iabweb/nginx-default.conf @@ -9,7 +9,12 @@ server { proxy_pass http://127.0.0.1:8000; proxy_set_header Host $${keepempty}host; proxy_set_header X-Forwarded-For $${keepempty}proxy_add_x_forwarded_for; + proxy_set_header Connection close; client_max_body_size 0; # disable size check + # Set timeouts longer than Cloudflare proxy limits + proxy_connect_timeout 60; # nginx default (Cf = 15) + proxy_read_timeout 120; # nginx default = 60 (Cf = 100) + proxy_send_timeout 60; # nginx default = 60 (Cf = 30) } location /media/ { alias /app/media/; diff --git a/k8s/ietfweb/nginx-default.conf b/k8s/ietfweb/nginx-default.conf index 2faee64f..d701162d 100644 --- a/k8s/ietfweb/nginx-default.conf +++ b/k8s/ietfweb/nginx-default.conf @@ -10,7 +10,12 @@ server { proxy_pass http://127.0.0.1:8000; proxy_set_header Host $${keepempty}host; proxy_set_header X-Forwarded-For $${keepempty}proxy_add_x_forwarded_for; + proxy_set_header Connection close; client_max_body_size 0; # disable size check + # Set timeouts longer than Cloudflare proxy limits + proxy_connect_timeout 60; # nginx default (Cf = 15) + proxy_read_timeout 120; # nginx default = 60 (Cf = 100) + proxy_send_timeout 60; # nginx default = 60 (Cf = 30) } location /media/ { alias /app/media/;