diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-09-07 11:02:12 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-09-07 11:02:12 +0200 |
commit | c75b75a2e15cc6ea665e5e51629c528ebc31fcd3 (patch) | |
tree | 53eae667f2c0dd936bf1cddf55519e2bb9412fad /modules | |
parent | 93531b30f0c08f6c549fac338a1cb8070c3c0a9a (diff) | |
download | Nix-c75b75a2e15cc6ea665e5e51629c528ebc31fcd3.tar.gz Nix-c75b75a2e15cc6ea665e5e51629c528ebc31fcd3.tar.zst Nix-c75b75a2e15cc6ea665e5e51629c528ebc31fcd3.zip |
Remove php from immae.eu
Diffstat (limited to 'modules')
-rw-r--r-- | modules/private/websites/immae/production.nix | 23 | ||||
-rw-r--r-- | modules/private/websites/tools/tools/default.nix | 1 |
2 files changed, 1 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 |
diff --git a/modules/private/websites/tools/tools/default.nix b/modules/private/websites/tools/tools/default.nix index 5b368e0..e17c708 100644 --- a/modules/private/websites/tools/tools/default.nix +++ b/modules/private/websites/tools/tools/default.nix | |||
@@ -217,6 +217,7 @@ in { | |||
217 | php_admin_value[open_basedir] = "/run/wrappers/bin/sendmail:/var/lib/ftp/devtools.immae.eu:/tmp" | 217 | php_admin_value[open_basedir] = "/run/wrappers/bin/sendmail:/var/lib/ftp/devtools.immae.eu:/tmp" |
218 | ''; | 218 | ''; |
219 | phpOptions = config.services.phpfpm.phpOptions + '' | 219 | phpOptions = config.services.phpfpm.phpOptions + '' |
220 | extension=${pkgs.php}/lib/php/extensions/mysqli.so | ||
220 | extension=${pkgs.phpPackages.redis}/lib/php/extensions/redis.so | 221 | extension=${pkgs.phpPackages.redis}/lib/php/extensions/redis.so |
221 | extension=${pkgs.phpPackages.apcu}/lib/php/extensions/apcu.so | 222 | extension=${pkgs.phpPackages.apcu}/lib/php/extensions/apcu.so |
222 | zend_extension=${pkgs.php}/lib/php/extensions/opcache.so | 223 | zend_extension=${pkgs.php}/lib/php/extensions/opcache.so |