]> git.immae.eu Git - perso/Immae/Config/Nix.git/commitdiff
Handle immae.fr from eldiron
authorIsmaël Bouya <ismael.bouya@normalesup.org>
Fri, 20 Dec 2019 00:53:13 +0000 (01:53 +0100)
committerIsmaël Bouya <ismael.bouya@normalesup.org>
Fri, 20 Dec 2019 03:12:30 +0000 (04:12 +0100)
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;