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
This commit is contained in:
parent
d836234e77
commit
db5a15676c
1 changed files with 3 additions and 3 deletions
|
@ -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};
|
||||
''}
|
||||
|
|
Loading…
Reference in a new issue