X-Git-Url: https://git.immae.eu/?p=perso%2FImmae%2FConfig%2FNix.git;a=blobdiff_plain;f=modules%2Fprivate%2Fwebsites%2Fleila%2Fproduction.nix;h=b48da6ff57ec773061d96b832ced21af33691013;hp=3b289cfc8b1591996c62bba906daad35a3caba74;hb=d3452fc59b9839846225fd254926c64a9c71f071;hpb=514f9ec3beec470c4445be690673a0ceab9115b4 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 @@ let cfg = config.myServices.websites.leila.production; varDir = "/var/lib/ftp/leila"; + apacheUser = config.services.httpd.Prod.user; + apacheGroup = config.services.httpd.Prod.group; in { options.myServices.websites.leila.production.enable = lib.mkEnableOption "enable Leila's websites in production"; config = lib.mkIf cfg.enable { services.phpfpm.pools.leila = { - user = "wwwrun"; - group = "wwwrun"; + user = apacheUser; + group = apacheGroup; settings = { - "listen.owner" = "wwwrun"; - "listen.group" = "wwwrun"; + "listen.owner" = apacheUser; + "listen.group" = apacheGroup; "pm" = "ondemand"; "pm.max_children" = "5";