[pi4] Fix nginx config with TLS

This commit is contained in:
2025-06-08 21:32:52 +00:00
parent eb8c857940
commit a277e8f3ed
3 changed files with 14 additions and 17 deletions

View File

@ -14,9 +14,11 @@ let
forceSSL = true;
inherit locations;
};
homelab = common.localIpAddr 231;
homelab = "http://${common.localIpAddr 231}";
homelabProxy = proxyTo homelab; # TODO get homelab local ip from systems
redirect = subdomain: {
enableACME = true;
forceSSL = true;
globalRedirect = if subdomain == "" then domain else "${subdomain}.${domain}";
};
in
@ -46,7 +48,7 @@ in
# Uptime Kuma
"status.${domain}" = homelabProxy 3001;
# Headscale
"vpm.${domain}" = proxyLocations {
"vpn.${domain}" = proxyLocations {
"/web".proxyPass = "${homelab}:8084";
"/".proxyPass = "${homelab}:8082";
};