aboutsummaryrefslogtreecommitdiff
path: root/modules/private/websites/immae
diff options
context:
space:
mode:
Diffstat (limited to 'modules/private/websites/immae')
-rw-r--r--modules/private/websites/immae/production.nix23
1 files changed, 0 insertions, 23 deletions
diff --git a/modules/private/websites/immae/production.nix b/modules/private/websites/immae/production.nix
index f19823a..6b88ff2 100644
--- a/modules/private/websites/immae/production.nix
+++ b/modules/private/websites/immae/production.nix
@@ -9,25 +9,6 @@ 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.pools.immae = {
13 listen = "/run/phpfpm/immae.sock";
14 extraConfig = ''
15 user = wwwrun
16 group = wwwrun
17 listen.owner = wwwrun
18 listen.group = wwwrun
19
20 pm = ondemand
21 pm.max_children = 5
22 pm.process_idle_timeout = 60
23
24 php_admin_value[open_basedir] = "${varDir}:/tmp"
25 '';
26 phpOptions = config.services.phpfpm.phpOptions + ''
27 extension=${pkgs.php}/lib/php/extensions/mysqli.so
28 '';
29 };
30 services.websites.env.production.modules = [ "proxy_fcgi" ];
31 services.websites.env.production.vhostConfs.immae = { 12 services.websites.env.production.vhostConfs.immae = {
32 certName = "eldiron"; 13 certName = "eldiron";
33 addToCerts = true; 14 addToCerts = true;
@@ -37,10 +18,6 @@ in {
37 '' 18 ''
38 Use Stats www.immae.eu 19 Use Stats www.immae.eu
39 20
40 <FilesMatch "\.php$">
41 SetHandler "proxy:unix:/run/phpfpm/immae.sock|fcgi://localhost"
42 </FilesMatch>
43
44 <Directory ${varDir}> 21 <Directory ${varDir}>
45 DirectoryIndex index.php index.htm index.html 22 DirectoryIndex index.php index.htm index.html
46 Options Indexes FollowSymLinks MultiViews Includes 23 Options Indexes FollowSymLinks MultiViews Includes