diff options
Diffstat (limited to 'modules')
-rw-r--r-- | modules/private/websites/immae/production.nix | 27 |
1 files changed, 16 insertions, 11 deletions
diff --git a/modules/private/websites/immae/production.nix b/modules/private/websites/immae/production.nix index 3c851e6..f19823a 100644 --- a/modules/private/websites/immae/production.nix +++ b/modules/private/websites/immae/production.nix | |||
@@ -9,19 +9,24 @@ in { | |||
9 | config = lib.mkIf cfg.enable { | 9 | config = lib.mkIf cfg.enable { |
10 | services.webstats.sites = [ { name = "www.immae.eu"; } ]; | 10 | services.webstats.sites = [ { name = "www.immae.eu"; } ]; |
11 | 11 | ||
12 | services.phpfpm.poolConfigs.immae = '' | 12 | services.phpfpm.pools.immae = { |
13 | listen = /run/phpfpm/immae.sock | 13 | listen = "/run/phpfpm/immae.sock"; |
14 | user = wwwrun | 14 | extraConfig = '' |
15 | group = wwwrun | 15 | user = wwwrun |
16 | listen.owner = wwwrun | 16 | group = wwwrun |
17 | listen.group = wwwrun | 17 | listen.owner = wwwrun |
18 | listen.group = wwwrun | ||
18 | 19 | ||
19 | pm = ondemand | 20 | pm = ondemand |
20 | pm.max_children = 5 | 21 | pm.max_children = 5 |
21 | pm.process_idle_timeout = 60 | 22 | pm.process_idle_timeout = 60 |
22 | 23 | ||
23 | php_admin_value[open_basedir] = "${varDir}:/tmp" | 24 | php_admin_value[open_basedir] = "${varDir}:/tmp" |
24 | ''; | 25 | ''; |
26 | phpOptions = config.services.phpfpm.phpOptions + '' | ||
27 | extension=${pkgs.php}/lib/php/extensions/mysqli.so | ||
28 | ''; | ||
29 | }; | ||
25 | services.websites.env.production.modules = [ "proxy_fcgi" ]; | 30 | services.websites.env.production.modules = [ "proxy_fcgi" ]; |
26 | services.websites.env.production.vhostConfs.immae = { | 31 | services.websites.env.production.vhostConfs.immae = { |
27 | certName = "eldiron"; | 32 | certName = "eldiron"; |