From 143bc82d3ee5fcce95a4765cf553c40acb9ce9e1 Mon Sep 17 00:00:00 2001 From: sinavir Date: Mon, 2 Oct 2023 21:32:54 +0200 Subject: [PATCH] fix(metis): Use serverAliases for metis --- machines/web01/metis/default.nix | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/machines/web01/metis/default.nix b/machines/web01/metis/default.nix index 5ccdd77..a84fc31 100644 --- a/machines/web01/metis/default.nix +++ b/machines/web01/metis/default.nix @@ -9,7 +9,12 @@ let frama-agenda = "framagenda.org"; }; - nginxConf = { + +in { + services.nginx.virtualHosts."calendrier.dgnum.eu" = { + serverAliases = [ + "calendrier.eleves.ens.fr" + ]; enableACME = true; forceSSL = true; root = package; @@ -30,10 +35,4 @@ let rewrite ^/calendrier(.*)$ $1 permanent; ''; }; - -in { - services.nginx.virtualHosts = { - "calendrier.eleves.ens.fr" = nginxConf; - "calendrier.dgnum.eu" = nginxConf; - }; }