mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
fix(bbuddy): increase nginx timeouts
This commit is contained in:
parent
90901a302c
commit
1d806cd552
2 changed files with 11 additions and 4 deletions
|
|
@ -142,9 +142,6 @@ in {
|
|||
phpfpmPool = "barcodebuddy";
|
||||
passHeaders.X-Accel-Buffering = mkIf cfg.reverseProxy.enable (mkOptionDefault true);
|
||||
};
|
||||
extraConfig = ''
|
||||
fastcgi_read_timeout 80s;
|
||||
'';
|
||||
};
|
||||
redis = let
|
||||
redis = config.services.redis.servers.${cfg.redis.server};
|
||||
|
|
@ -216,6 +213,15 @@ in {
|
|||
try_files $uri /api/index.php$is_args$query_string;
|
||||
'';
|
||||
${cfg.nginxPhpLocation} = unmerged.merge cfg.nginxPhpSettings;
|
||||
"~ /incl/sse/sse_data\\.php$" = mkMerge [
|
||||
(unmerged.merge cfg.nginxPhpSettings)
|
||||
{
|
||||
extraConfig = ''
|
||||
fastcgi_read_timeout 30m;
|
||||
fastcgi_buffering off;
|
||||
'';
|
||||
}
|
||||
];
|
||||
};
|
||||
extraConfig = cfg.nginxConfig;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -14,7 +14,8 @@
|
|||
websocket.enable = true;
|
||||
};
|
||||
extraConfig = ''
|
||||
proxy_read_timeout 1d;
|
||||
proxy_buffering off;
|
||||
proxy_read_timeout 1h;
|
||||
'';
|
||||
};
|
||||
in {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue