diff --git a/panel/nix/configuration.nix b/panel/nix/configuration.nix index ecf06e0f..b0bcd5c4 100644 --- a/panel/nix/configuration.nix +++ b/panel/nix/configuration.nix @@ -146,7 +146,19 @@ in ${cfg.domain} = { locations = { - "/".proxyPass = "http://localhost:${toString cfg.port}"; + "/" = { + proxyPass = "http://localhost:${toString cfg.port}"; + extraConfig = '' + ## FIXME: The following is necessary because /deployment/status + ## can take aaaaages to respond. I think this is horrendous + ## design from the panel and should be changed there, but in the + ## meantime we bump nginx's timeouts to one hour. + proxy_connect_timeout 3600; + proxy_send_timeout 3600; + proxy_read_timeout 3600; + send_timeout 3600; + ''; + }; "/static/".alias = "/var/lib/${name}/static/"; }; }