]> git.immae.eu Git - perso/Immae/Config/Nix.git/blobdiff - modules/private/websites/immae/production.nix
Handle immae.fr from eldiron
[perso/Immae/Config/Nix.git] / modules / private / websites / immae / production.nix
index 12d6ddb413eb8d61b4fb869dfc8b4f0b26e16159..87bb848d7ddd044e578469158fa56890baa34b66 100644 (file)
@@ -46,6 +46,16 @@ in {
       ];
     };
 
+    services.websites.env.production.vhostConfs.immaeFr = {
+      certName    = "eldiron";
+      addToCerts  = true;
+      hosts       = [ "www.immae.fr" "immae.fr" ];
+      root        = null;
+      extraConfig = [ ''
+        RedirectMatch 301 ^/((?!\.well-known.*$).*)$ https://www.immae.eu/chapeaux/
+        '' ];
+    };
+
     services.websites.env.production.vhostConfs.bouya = {
       certName    = "eldiron";
       addToCerts  = true;