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.websites.env.production.vhostConfs.immae = {
15 hosts = [ "www.immae.eu" ];
19 Use Stats www.immae.eu
22 DirectoryIndex index.php index.htm index.html
23 Options Indexes FollowSymLinks MultiViews Includes
30 Require ldap-group cn=blog,cn=immae.eu,ou=services,dc=immae,dc=eu
36 services.websites.env.production.vhostConfs.bouya = {
39 hosts = [ "bouya.org" "www.bouya.org" ];
42 RedirectMatch 301 ^/((?!\.well-known.*$).*)$ https://www.normalesup.org/~bouya/