fix main domain redirect
This commit is contained in:
parent
d32f870dda
commit
b65be63b70
|
@ -16,6 +16,5 @@
|
|||
./website.nix
|
||||
./trekkie.nix
|
||||
./chemo.nix
|
||||
./landingpage.nix
|
||||
];
|
||||
}
|
||||
|
|
|
@ -1,17 +0,0 @@
|
|||
{ pkgs, config, ... }: {
|
||||
services = {
|
||||
nginx = {
|
||||
enable = true;
|
||||
recommendedProxySettings = true;
|
||||
virtualHosts = {
|
||||
"${(builtins.replaceStrings [ "tlm.solutions" ] [ "dvb.solutions" ] config.deployment-TLMS.domain)}" = {
|
||||
enableACME = true;
|
||||
forceSSL = true;
|
||||
extraConfig = ''
|
||||
rewrite ^ https://kid.${config.deployment-TLMS.domain}/en/map/ redirect;
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
|
@ -13,10 +13,9 @@
|
|||
enableACME = true;
|
||||
forceSSL = true;
|
||||
extraConfig = ''
|
||||
rewrite https://kid.${config.deployment-TLMS.domain}/ permanent;
|
||||
return 302 $scheme://kid.${config.deployment-TLMS.domain};
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue