mirror of
https://github.com/dump-dvb/nix-config.git
synced 2024-06-02 22:39:25 +02:00
22 lines
592 B
Nix
22 lines
592 B
Nix
{ 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;
|
|
'';
|
|
};
|
|
"${config.deployment-TLMS.domain}" = {
|
|
enableACME = true;
|
|
forceSSL = true;
|
|
extraConfig = ''
|
|
return 302 $scheme://kid.${config.deployment-TLMS.domain};
|
|
'';
|
|
};
|
|
};
|
|
};
|
|
}
|