diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-06-10 23:16:36 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-06-10 23:16:36 +0200 |
commit | 641efb7d7320412da92a70f7415e8ebdd4e324c8 (patch) | |
tree | f8f842708e45e83b871c3a278888ac6d8038d23b /modules | |
parent | 7ccde67a90e5d096d1414f0a7cc9d844fb12498e (diff) | |
download | Nix-641efb7d7320412da92a70f7415e8ebdd4e324c8.tar.gz Nix-641efb7d7320412da92a70f7415e8ebdd4e324c8.tar.zst Nix-641efb7d7320412da92a70f7415e8ebdd4e324c8.zip |
Add mysqli extension to immae website
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"; |