From 2f55e1512a6fdee0955c21823e50eeef1a99ce0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20=E2=80=9CNiols=E2=80=9D=20Jeannerod?= Date: Wed, 4 Jun 2025 12:13:11 +0200 Subject: [PATCH] FediPanel: bump nginx timeout to an hour --- panel/nix/configuration.nix | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) 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/"; }; }