1
0
mirror of https://github.com/ellmau/nixos.git synced 2025-12-19 09:29:36 +01:00

Add www.ellmauthaler.net redirect to website

Signed-off-by: Stefan Ellmauthaler <stefan.ellmauthaler@gmail.com>
This commit is contained in:
Stefan Ellmauthaler 2024-09-20 12:09:58 +02:00
parent 00e12ef683
commit e8033618bd
No known key found for this signature in database

View File

@ -17,16 +17,25 @@ with lib; {
recommendedTlsSettings = true; recommendedTlsSettings = true;
}; };
networking.firewall.allowedTCPPorts = [80 443]; networking.firewall.allowedTCPPorts = [80 443];
services.nginx.virtualHosts."localhost" = { services.nginx.virtualHosts = {
"localhost" = {
addSSL = false; addSSL = false;
enableACME = false; enableACME = false;
root = "/var/www/localhost"; root = "/var/www/localhost";
default = true; default = true;
}; };
services.nginx.virtualHosts."ellmauthaler.net" = {
"ellmauthaler.net" = {
addSSL = true; addSSL = true;
enableACME = true; enableACME = true;
root = "/var/www/localhost"; root = "/var/www/localhost";
}; };
"www.ellmauthaler.net" = {
enableACME = true;
forceSSL = true;
globalRedirect = "stefan.ellmauthaler.net";
};
};
}; };
} }