Skip to content

Commit 52606e3

Browse files
authored
Merge pull request #483 from nix-community/build-timeout
try to increase proxy timeout
2 parents 0cb0d36 + 2d3d6f9 commit 52606e3

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

nixosModules/master.nix

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -888,7 +888,16 @@ in
888888
services.nginx.enable = true;
889889
services.nginx.virtualHosts.${cfg.domain} = {
890890
locations = {
891-
"/".proxyPass = "http://127.0.0.1:${builtins.toString backendPort}/";
891+
"/" = {
892+
proxyPass = "http://127.0.0.1:${builtins.toString backendPort}/";
893+
894+
# Big build matrixes can generated quiet a bit of concurrent requests
895+
extraConfig = ''
896+
proxy_connect_timeout 120s;
897+
proxy_send_timeout 120s;
898+
proxy_read_timeout 120s;
899+
'';
900+
};
892901
"/sse" = {
893902
proxyPass = "http://127.0.0.1:${builtins.toString backendPort}/sse";
894903
# proxy buffering will prevent sse to work

0 commit comments

Comments
 (0)