diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2020-03-25 11:57:48 +0100 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2020-04-03 16:25:07 +0200 |
commit | 5400b9b6f65451d41a9106fae6fc00f97d83f4ef (patch) | |
tree | 6ed072da7b1f17ac3994ffea052aa0c0822f8446 /modules/private/websites/emilia | |
parent | 441da8aac378f401625e82caf281fa0e26128310 (diff) | |
download | Nix-5400b9b6f65451d41a9106fae6fc00f97d83f4ef.tar.gz Nix-5400b9b6f65451d41a9106fae6fc00f97d83f4ef.tar.zst Nix-5400b9b6f65451d41a9106fae6fc00f97d83f4ef.zip |
Upgrade nixos
Diffstat (limited to 'modules/private/websites/emilia')
-rw-r--r-- | modules/private/websites/emilia/richie.nix | 31 |
1 files changed, 16 insertions, 15 deletions
diff --git a/modules/private/websites/emilia/richie.nix b/modules/private/websites/emilia/richie.nix index f7b4f8d..98ab1cd 100644 --- a/modules/private/websites/emilia/richie.nix +++ b/modules/private/websites/emilia/richie.nix | |||
@@ -49,22 +49,23 @@ in | |||
49 | ''; | 49 | ''; |
50 | }; | 50 | }; |
51 | services.phpfpm.pools.richie_production = { | 51 | services.phpfpm.pools.richie_production = { |
52 | listen = "/run/phpfpm/richie_production.sock"; | 52 | user = "wwwrun"; |
53 | extraConfig = '' | 53 | group = "wwwrun"; |
54 | user = wwwrun | 54 | settings = { |
55 | group = wwwrun | 55 | "listen.owner" = "wwwrun"; |
56 | listen.owner = wwwrun | 56 | "listen.group" = "wwwrun"; |
57 | listen.group = wwwrun | ||
58 | 57 | ||
59 | pm = ondemand | 58 | "pm" = "ondemand"; |
60 | pm.max_children = 5 | 59 | "pm.max_children" = "5"; |
61 | pm.process_idle_timeout = 60 | 60 | "pm.process_idle_timeout" = "60"; |
62 | 61 | ||
63 | env[PATH] = /run/current-system/sw/bin:${lib.makeBinPath [ pkgs.imagemagick ]} | 62 | "php_admin_value[open_basedir]" = "${vardir}:/var/lib/php/sessions/richie_production:/var/secrets/webapps/prod-richie:${richieSrc}:/tmp"; |
64 | env[BDD_CONNECT] = "/var/secrets/webapps/prod-richie" | 63 | "php_admin_value[session.save_path]" = "/var/lib/php/sessions/richie_production"; |
65 | php_admin_value[open_basedir] = "${vardir}:/var/lib/php/sessions/richie_production:/var/secrets/webapps/prod-richie:${richieSrc}:/tmp" | 64 | }; |
66 | php_admin_value[session.save_path] = "/var/lib/php/sessions/richie_production" | 65 | phpEnv = { |
67 | ''; | 66 | PATH = "/run/current-system/sw/bin:${lib.makeBinPath [ pkgs.imagemagick ]}"; |
67 | BDD_CONNECT = "/var/secrets/webapps/prod-richie"; | ||
68 | }; | ||
68 | phpOptions = config.services.phpfpm.phpOptions + '' | 69 | phpOptions = config.services.phpfpm.phpOptions + '' |
69 | date.timezone = 'Europe/Paris' | 70 | date.timezone = 'Europe/Paris' |
70 | extension=${pkgs.php}/lib/php/extensions/mysqli.so | 71 | extension=${pkgs.php}/lib/php/extensions/mysqli.so |
@@ -91,7 +92,7 @@ in | |||
91 | Require all granted | 92 | Require all granted |
92 | 93 | ||
93 | <FilesMatch "\.php$"> | 94 | <FilesMatch "\.php$"> |
94 | SetHandler "proxy:unix:/run/phpfpm/richie_production.sock|fcgi://localhost" | 95 | SetHandler "proxy:unix:${config.services.phpfpm.pools.richie_production.socket}|fcgi://localhost" |
95 | </FilesMatch> | 96 | </FilesMatch> |
96 | </Directory> | 97 | </Directory> |
97 | '' | 98 | '' |