forked from DGNum/infrastructure
fix(metis): Use serverAliases for metis
This commit is contained in:
parent
566b392b21
commit
143bc82d3e
1 changed files with 6 additions and 7 deletions
|
@ -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;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue