forked from Fediversity/Fediversity
FediPanel: bump nginx timeout to an hour
This commit is contained in:
parent
b59f8a4183
commit
2f55e1512a
1 changed files with 13 additions and 1 deletions
|
@ -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/";
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue