1 { lib, pkgs, config, myconfig, mylibs, ... }:
3 cfg = config.services.myWebsites.Immae;
4 varDir = "/var/lib/ftp/immae";
5 env = myconfig.env.websites.immae;
7 options.services.myWebsites.Immae = {
9 enable = lib.mkEnableOption "enable Immae's website";
17 config = lib.mkIf cfg.production.enable {
18 services.myWebsites.commons.stats.enable = true;
19 services.myWebsites.commons.stats.sites = [
21 name = "www.immae.eu";
22 conf = ./immae_goaccess.conf;
26 security.acme.certs."eldiron".extraDomains."www.immae.eu" = null;
28 services.myPhpfpm.poolConfigs.immae = ''
29 listen = /run/phpfpm/immae.sock
37 pm.process_idle_timeout = 60
39 php_admin_value[open_basedir] = "${varDir}:/tmp"
41 services.myWebsites.production.modules = [ "proxy_fcgi" ];
42 services.myWebsites.production.vhostConfs.immae = {
44 hosts = [ "www.immae.eu" ];
48 Use Stats www.immae.eu
51 SetHandler "proxy:unix:/run/phpfpm/immae.sock|fcgi://localhost"
55 DirectoryIndex index.php index.htm index.html
56 Options Indexes FollowSymLinks MultiViews Includes
63 Require ldap-group cn=blog,cn=immae.eu,ou=services,dc=immae,dc=eu
69 security.acme.certs."eldiron".extraDomains."bouya.org" = null;
70 security.acme.certs."eldiron".extraDomains."www.bouya.org" = null;
71 services.myWebsites.production.vhostConfs.bouya = {
73 hosts = [ "bouya.org" "www.bouya.org" ];
76 RedirectMatch 301 ^/((?!\.well-known.*$).*)$ https://www.normalesup.org/~bouya/