nixos/nextcloud: add option to set fastcgi timeout

This commit is contained in:
Phillip Seeber 2022-08-04 10:52:25 +02:00 committed by pennae
parent 48c0cae744
commit 9704e9c856

@ -254,6 +254,14 @@ in {
'';
};
fastcgiTimeout = mkOption {
type = types.int;
default = 120;
description = lib.mdDoc ''
FastCGI timeout for database connection in seconds.
'';
};
database = {
createLocally = mkOption {
@ -1032,7 +1040,7 @@ in {
fastcgi_pass unix:${fpm.socket};
fastcgi_intercept_errors on;
fastcgi_request_buffering off;
fastcgi_read_timeout 120s;
fastcgi_read_timeout ${builtins.toString cfg.fastcgiTimeout}s;
'';
};
"~ \\.(?:css|js|woff2?|svg|gif|map)$".extraConfig = ''