fix(metis): Use serverAliases for metis

This commit is contained in:
sinavir 2023-10-02 21:32:54 +02:00
parent 566b392b21
commit 143bc82d3e

View file

@ -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;
};
}