From 9704e9c85620593c31eca5e3b216d038b1389ccf Mon Sep 17 00:00:00 2001 From: Phillip Seeber Date: Thu, 4 Aug 2022 10:52:25 +0200 Subject: [PATCH] nixos/nextcloud: add option to set fastcgi timeout --- nixos/modules/services/web-apps/nextcloud.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/nixos/modules/services/web-apps/nextcloud.nix b/nixos/modules/services/web-apps/nextcloud.nix index b286b1a64c3e..efd4d0af7605 100644 --- a/nixos/modules/services/web-apps/nextcloud.nix +++ b/nixos/modules/services/web-apps/nextcloud.nix @@ -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 = ''