3
0
Fork 0
forked from mirrors/nixpkgs

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:
Sandro 2021-04-04 07:47:45 +02:00 committed by GitHub
parent d836234e77
commit db5a15676c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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};
''}