fix main domain redirect

This commit is contained in:
oxapentane - 2023-05-02 20:08:48 +02:00
parent d32f870dda
commit b65be63b70
Signed by: oxapentane
GPG Key ID: 91FA5E5BF9AA901C
3 changed files with 1 additions and 20 deletions

View File

@ -16,6 +16,5 @@
./website.nix
./trekkie.nix
./chemo.nix
./landingpage.nix
];
}

View File

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

View File

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