diff options
Diffstat (limited to 'modules/private/websites/leila')
-rw-r--r-- | modules/private/websites/leila/production.nix | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/modules/private/websites/leila/production.nix b/modules/private/websites/leila/production.nix index 3b289cf..b48da6f 100644 --- a/modules/private/websites/leila/production.nix +++ b/modules/private/websites/leila/production.nix | |||
@@ -2,16 +2,18 @@ | |||
2 | let | 2 | let |
3 | cfg = config.myServices.websites.leila.production; | 3 | cfg = config.myServices.websites.leila.production; |
4 | varDir = "/var/lib/ftp/leila"; | 4 | varDir = "/var/lib/ftp/leila"; |
5 | apacheUser = config.services.httpd.Prod.user; | ||
6 | apacheGroup = config.services.httpd.Prod.group; | ||
5 | in { | 7 | in { |
6 | options.myServices.websites.leila.production.enable = lib.mkEnableOption "enable Leila's websites in production"; | 8 | options.myServices.websites.leila.production.enable = lib.mkEnableOption "enable Leila's websites in production"; |
7 | 9 | ||
8 | config = lib.mkIf cfg.enable { | 10 | config = lib.mkIf cfg.enable { |
9 | services.phpfpm.pools.leila = { | 11 | services.phpfpm.pools.leila = { |
10 | user = "wwwrun"; | 12 | user = apacheUser; |
11 | group = "wwwrun"; | 13 | group = apacheGroup; |
12 | settings = { | 14 | settings = { |
13 | "listen.owner" = "wwwrun"; | 15 | "listen.owner" = apacheUser; |
14 | "listen.group" = "wwwrun"; | 16 | "listen.group" = apacheGroup; |
15 | 17 | ||
16 | "pm" = "ondemand"; | 18 | "pm" = "ondemand"; |
17 | "pm.max_children" = "5"; | 19 | "pm.max_children" = "5"; |