3 cfg = config.services.myWebsites.Leila;
4 varDir = "/var/lib/ftp/leila";
6 options.services.myWebsites.Leila = {
8 enable = lib.mkEnableOption "enable Leila's website in production";
16 config = (lib.mkIf cfg.production.enable {
17 security.acme.certs."leila" = config.services.myCertificates.certConfig // {
18 domain = "leila.bouya.org";
20 "chorale.leila.bouya.org" = null;
21 "chorale-vocanta.fr.nf" = null;
22 "www.chorale-vocanta.fr.nf" = null;
26 services.myPhpfpm.poolConfigs.leila = ''
27 listen = /run/phpfpm/leila.sock
35 pm.process_idle_timeout = 60
37 php_admin_value[open_basedir] = "${varDir}:/tmp"
40 services.myWebsites.commons.stats.enable = true;
41 services.myWebsites.commons.stats.sites = [
43 name = "leila.bouya.org";
44 conf = ./leila_goaccess.conf;
47 name = "chorale.leila.bouya.org";
48 conf = ./leila_chorale_goaccess.conf;
52 services.myWebsites.production.modules = [ "proxy_fcgi" ];
53 services.myWebsites.production.vhostConfs.leila_chorale = {
55 hosts = [ "chorale.leila.bouya.org" "chorale-vocanta.fr.nf" "www.chorale-vocanta.fr.nf" ];
56 root = "${varDir}/Chorale";
59 Use Stats chorale.leila.bouya.org
60 <Directory ${varDir}/Chorale>
61 DirectoryIndex index.php index.htm index.html
62 Options Indexes FollowSymLinks MultiViews Includes
66 Require ldap-group cn=chorale.leila.bouya.org,cn=httpd,ou=services,dc=immae,dc=eu
69 SetHandler "proxy:unix:/run/phpfpm/leila.sock|fcgi://localhost"
75 services.myWebsites.production.vhostConfs.leila = {
77 hosts = [ "leila.bouya.org" ];
81 Use Stats leila.bouya.org
82 <Directory ${varDir}/Chorale>
83 DirectoryIndex index.htm index.html
84 Options Indexes FollowSymLinks MultiViews Includes
88 Require ldap-group cn=chorale.leila.bouya.org,cn=httpd,ou=services,dc=immae,dc=eu
91 SetHandler "proxy:unix:/run/phpfpm/leila.sock|fcgi://localhost"
95 DirectoryIndex index.htm index.html
96 Options Indexes FollowSymLinks MultiViews Includes