nix-config/modules/data-hoarder/website.nix

23 lines
612 B
Nix
Raw Normal View History

{ config, ... }: {
services.nginx = {
enable = true;
virtualHosts = {
"${(builtins.replaceStrings [ "tlm.solutions" ] [ "dvb.solutions" ]
config.deployment-TLMS.domain)}" = {
enableACME = true;
forceSSL = true;
extraConfig = ''
rewrite ^ https://kid.${config.deployment-TLMS.domain}/ permanent;
'';
};
2022-12-30 18:29:13 +01:00
"${config.deployment-TLMS.domain}" = {
enableACME = true;
forceSSL = true;
2023-04-18 22:20:12 +02:00
extraConfig = ''
2023-05-02 20:08:48 +02:00
return 302 $scheme://kid.${config.deployment-TLMS.domain};
2023-04-18 22:20:12 +02:00
'';
};
};
};
}