aboutsummaryrefslogtreecommitdiff
path: root/modules/private/websites/leila
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2020-04-18 16:10:56 +0200
committerIsmaël Bouya <ismael.bouya@normalesup.org>2020-04-20 01:51:48 +0200
commitd3452fc59b9839846225fd254926c64a9c71f071 (patch)
treea98a0958b826ac4b2ab137720edf0195c65dd958 /modules/private/websites/leila
parent514f9ec3beec470c4445be690673a0ceab9115b4 (diff)
downloadNix-d3452fc59b9839846225fd254926c64a9c71f071.tar.gz
Nix-d3452fc59b9839846225fd254926c64a9c71f071.tar.zst
Nix-d3452fc59b9839846225fd254926c64a9c71f071.zip
Refactor websites
Diffstat (limited to 'modules/private/websites/leila')
-rw-r--r--modules/private/websites/leila/production.nix10
1 files changed, 6 insertions, 4 deletions
diff --git a/modules/private/websites/leila/production.nix b/modules/private/websites/leila/production.nix
index 3b289cf..b48da6f 100644
--- a/modules/private/websites/leila/production.nix
+++ b/modules/private/websites/leila/production.nix
@@ -2,16 +2,18 @@
2let 2let
3 cfg = config.myServices.websites.leila.production; 3 cfg = config.myServices.websites.leila.production;
4 varDir = "/var/lib/ftp/leila"; 4 varDir = "/var/lib/ftp/leila";
5 apacheUser = config.services.httpd.Prod.user;
6 apacheGroup = config.services.httpd.Prod.group;
5in { 7in {
6 options.myServices.websites.leila.production.enable = lib.mkEnableOption "enable Leila's websites in production"; 8 options.myServices.websites.leila.production.enable = lib.mkEnableOption "enable Leila's websites in production";
7 9
8 config = lib.mkIf cfg.enable { 10 config = lib.mkIf cfg.enable {
9 services.phpfpm.pools.leila = { 11 services.phpfpm.pools.leila = {
10 user = "wwwrun"; 12 user = apacheUser;
11 group = "wwwrun"; 13 group = apacheGroup;
12 settings = { 14 settings = {
13 "listen.owner" = "wwwrun"; 15 "listen.owner" = apacheUser;
14 "listen.group" = "wwwrun"; 16 "listen.group" = apacheGroup;
15 17
16 "pm" = "ondemand"; 18 "pm" = "ondemand";
17 "pm.max_children" = "5"; 19 "pm.max_children" = "5";