From 8cf37c75c3c744717327344ff982a62d787c1dc7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Isma=C3=ABl=20Bouya?= Date: Fri, 20 Dec 2019 01:53:13 +0100 Subject: [PATCH] Handle immae.fr from eldiron --- modules/private/websites/immae/production.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) 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; -- 2.41.0