Skip to content

Commit

Permalink
nixos/nextcloud: add poolConfig option (NixOS#48094)
Browse files Browse the repository at this point in the history
  • Loading branch information
Vskilet authored and fpletz committed Oct 11, 2018
1 parent 0aabc77 commit 2dcd512
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions nixos/modules/services/web-apps/nextcloud.nix
Expand Up @@ -114,6 +114,21 @@ in {
'';
};

poolConfig = mkOption {
type = types.lines;
default = ''
pm = dynamic
pm.max_children = 32
pm.start_servers = 2
pm.min_spare_servers = 2
pm.max_spare_servers = 4
pm.max_requests = 500
'';
description = ''
Options for nextcloud's PHP pool. See the documentation on <literal>php-fpm.conf</literal> for details on configuration directives.
'';
};

config = {
dbtype = mkOption {
type = types.enum [ "sqlite" "pgsql" "mysql" ];
Expand Down Expand Up @@ -339,11 +354,7 @@ in {
listen.group = nginx
user = nextcloud
group = nginx
pm = dynamic
pm.max_children = 32
pm.start_servers = 2
pm.min_spare_servers = 2
pm.max_spare_servers = 4
${cfg.poolConfig}
env[NEXTCLOUD_CONFIG_DIR] = ${cfg.home}/config
env[PATH] = /run/wrappers/bin:/nix/var/nix/profiles/default/bin:/run/current-system/sw/bin:/usr/bin:/bin
${phpAdminValues}
Expand Down

0 comments on commit 2dcd512

Please sign in to comment.