1 { lib, pkgs, config, myconfig, ... }:
3 cfg = config.myServices.websites.immae.production;
4 varDir = "/var/lib/ftp/immae";
5 env = myconfig.env.websites.immae;
7 options.myServices.websites.immae.production.enable = lib.mkEnableOption "enable Immae's website";
9 config = lib.mkIf cfg.enable {
10 services.webstats.sites = [ { name = "www.immae.eu"; } ];
12 services.myPhpfpm.poolConfigs.immae = ''
13 listen = /run/phpfpm/immae.sock
21 pm.process_idle_timeout = 60
23 php_admin_value[open_basedir] = "${varDir}:/tmp"
25 services.websites.production.modules = [ "proxy_fcgi" ];
26 services.websites.production.vhostConfs.immae = {
29 hosts = [ "www.immae.eu" ];
33 Use Stats www.immae.eu
36 SetHandler "proxy:unix:/run/phpfpm/immae.sock|fcgi://localhost"
40 DirectoryIndex index.php index.htm index.html
41 Options Indexes FollowSymLinks MultiViews Includes
48 Require ldap-group cn=blog,cn=immae.eu,ou=services,dc=immae,dc=eu
54 services.websites.production.vhostConfs.bouya = {
57 hosts = [ "bouya.org" "www.bouya.org" ];
60 RedirectMatch 301 ^/((?!\.well-known.*$).*)$ https://www.normalesup.org/~bouya/