X-Git-Url: https://git.immae.eu/?p=perso%2FImmae%2FConfig%2FNix.git;a=blobdiff_plain;f=modules%2Fprivate%2Fwebsites%2Fimmae%2Fproduction.nix;h=87bb848d7ddd044e578469158fa56890baa34b66;hp=12d6ddb413eb8d61b4fb869dfc8b4f0b26e16159;hb=8cf37c75c3c744717327344ff982a62d787c1dc7;hpb=ddaa9caff97e801c9299ec9d952c547313e942f0 diff --git a/modules/private/websites/immae/production.nix b/modules/private/websites/immae/production.nix index 12d6ddb..87bb848 100644 --- a/modules/private/websites/immae/production.nix +++ b/modules/private/websites/immae/production.nix @@ -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;