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

Compare commits

..

2 Commits

Author SHA1 Message Date
c4c7666802
Add ssl to www.ellmauthaler.net
Signed-off-by: Stefan Ellmauthaler <stefan.ellmauthaler@gmail.com>
2024-09-20 12:15:43 +02:00
e8033618bd
Add www.ellmauthaler.net redirect to website
Signed-off-by: Stefan Ellmauthaler <stefan.ellmauthaler@gmail.com>
2024-09-20 12:09:58 +02:00

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 = {
addSSL = false; "localhost" = {
enableACME = false; addSSL = false;
root = "/var/www/localhost"; enableACME = false;
default = true; root = "/var/www/localhost";
}; default = true;
services.nginx.virtualHosts."ellmauthaler.net" = { };
addSSL = true;
enableACME = true; "ellmauthaler.net" = {
root = "/var/www/localhost"; addSSL = true;
enableACME = true;
root = "/var/www/localhost";
};
"www.ellmauthaler.net" = {
enableACME = true;
addSSL = true;
globalRedirect = "stefan.ellmauthaler.net";
};
}; };
}; };
} }