FediPanel: bump nginx timeout to an hour

This commit is contained in:
Nicolas Jeannerod 2025-06-04 12:13:11 +02:00 committed by Valentin Gagarin
parent b59f8a4183
commit 2f55e1512a

View file

@ -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/";
};
}