fix: redirect root IP's in nginx to skynet.ie

This commit is contained in:
silver 2024-01-31 15:43:18 +00:00
parent 39594e5973
commit 6b0507a647
8 changed files with 63 additions and 9 deletions

View file

@ -245,6 +245,12 @@ in {
# to provide the certs
services.nginx.virtualHosts = {
"${cfg.host.ip}" = {
forceSSL = true;
useACMEHost = "skynet";
locations."/".return = "307 https://skynet.ie";
};
"mail.skynet.ie" = {
forceSSL = true;
useACMEHost = "mail";