mirror of
https://github.com/dump-dvb/nix-config.git
synced 2024-06-11 18:54:08 +02:00
18 lines
466 B
Nix
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;
|
|
'';
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|