nix-config/modules/data-hoarder/landingpage.nix
2023-04-28 23:00:34 +02:00

18 lines
466 B
Nix

{ 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;
'';
};
};
};
};
}