summaryrefslogtreecommitdiffstats
path: root/nixos/modules/services/web-apps/icingaweb2/icingaweb2.nix
diff options
context:
space:
mode:
authorAaron Andersen <aaron@fosslib.net>2019-07-03 12:11:38 -0400
committerAaron Andersen <aaron@fosslib.net>2019-08-23 07:54:51 -0400
commit0ce8317c469872bcb4aed577477676d4148aa1a6 (patch)
treea0cadfe603dcf68d4bfe67409949ad0000858137 /nixos/modules/services/web-apps/icingaweb2/icingaweb2.nix
parent8f8d9abca4d553f1416c179419f96eba88f36141 (diff)
nixos/phpfpm: deprecate poolConfigs option
Diffstat (limited to 'nixos/modules/services/web-apps/icingaweb2/icingaweb2.nix')
-rw-r--r--nixos/modules/services/web-apps/icingaweb2/icingaweb2.nix28
1 files changed, 15 insertions, 13 deletions
diff --git a/nixos/modules/services/web-apps/icingaweb2/icingaweb2.nix b/nixos/modules/services/web-apps/icingaweb2/icingaweb2.nix
index 6740131dccde..4c7736b88873 100644
--- a/nixos/modules/services/web-apps/icingaweb2/icingaweb2.nix
+++ b/nixos/modules/services/web-apps/icingaweb2/icingaweb2.nix
@@ -164,19 +164,21 @@ in {
};
config = mkIf cfg.enable {
- services.phpfpm.poolConfigs = mkIf (cfg.pool == "${poolName}") {
- "${poolName}" = ''
- listen = "${phpfpmSocketName}"
- listen.owner = nginx
- listen.group = nginx
- listen.mode = 0600
- user = icingaweb2
- pm = dynamic
- pm.max_children = 75
- pm.start_servers = 2
- pm.min_spare_servers = 2
- pm.max_spare_servers = 10
- '';
+ services.phpfpm.pools = mkIf (cfg.pool == "${poolName}") {
+ "${poolName}" = {
+ listen = phpfpmSocketName;
+ extraConfig = ''
+ listen.owner = nginx
+ listen.group = nginx
+ listen.mode = 0600
+ user = icingaweb2
+ pm = dynamic
+ pm.max_children = 75
+ pm.start_servers = 2
+ pm.min_spare_servers = 2
+ pm.max_spare_servers = 10
+ '';
+ };
};
services.phpfpm.phpOptions = mkIf (cfg.pool == "${poolName}")