From: Ismaƫl Bouya Date: Fri, 20 Dec 2019 00:53:13 +0000 (+0100) Subject: Handle immae.fr from eldiron X-Git-Url: https://git.immae.eu/?p=perso%2FImmae%2FConfig%2FNix.git;a=commitdiff_plain;h=8cf37c75c3c744717327344ff982a62d787c1dc7 Handle immae.fr from eldiron --- 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;