1 { lib, pkgs, config, ... }:
3 cfg = config.myServices.websites.immae.production;
4 varDir = "/var/lib/buildbot/outputs/immaeEu";
5 coursDir = "/var/lib/buildbot/outputs/cours";
6 rechercheDir = "/var/lib/buildbot/outputs/recherche";
7 env = config.myEnv.websites.immae;
9 options.myServices.websites.immae.production.enable = lib.mkEnableOption "enable Immae's website";
11 config = lib.mkIf cfg.enable {
12 services.webstats.sites = [ { name = "www.immae.eu"; } ];
14 services.websites.env.production.vhostConfs.immae = {
17 hosts = [ "www.immae.eu" ];
21 Use Stats www.immae.eu
24 DirectoryIndex index.htm index.html
25 Options Indexes FollowSymLinks MultiViews Includes
30 Alias /cours ${coursDir}
31 <Directory ${coursDir}>
32 DirectoryIndex index.htm index.html
33 Options Indexes FollowSymLinks MultiViews Includes
38 Alias /recherche ${rechercheDir}
39 <Directory ${rechercheDir}>
40 DirectoryIndex index.htm index.html
41 Options Indexes FollowSymLinks MultiViews Includes
49 services.websites.env.production.vhostConfs.immaeFr = {
52 hosts = [ "www.immae.fr" "immae.fr" ];
55 RedirectMatch 301 ^/((?!\.well-known.*$).*)$ https://www.immae.eu/chapeaux/
59 services.websites.env.production.vhostConfs.bouya = {
62 hosts = [ "bouya.org" "www.bouya.org" ];
65 RedirectMatch 301 ^/((?!\.well-known.*$).*)$ https://www.normalesup.org/~bouya/