From db5a15676cfa0b072d271e76fe1c7825907a833a Mon Sep 17 00:00:00 2001 From: Sandro Date: Sun, 4 Apr 2021 07:47:45 +0200 Subject: [PATCH] nixos/nginx: set "recommended" proxy timeouts to 60s According to the nginx documentation [1] those values cannot usually exceed 75 seconds. The defaults are 60s and should probably be lowered to something reasonable like 20 or 30 seconds. [1] https://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_connect_timeout --- nixos/modules/services/web-servers/nginx/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nixos/modules/services/web-servers/nginx/default.nix b/nixos/modules/services/web-servers/nginx/default.nix index 6c8341c1115f..f011b5272389 100644 --- a/nixos/modules/services/web-servers/nginx/default.nix +++ b/nixos/modules/services/web-servers/nginx/default.nix @@ -154,9 +154,9 @@ let ${optionalString (cfg.recommendedProxySettings) '' proxy_redirect off; - proxy_connect_timeout 90; - proxy_send_timeout 90; - proxy_read_timeout 90; + proxy_connect_timeout 60; + proxy_send_timeout 60; + proxy_read_timeout 60; proxy_http_version 1.0; include ${recommendedProxyConfig}; ''}