Tunnel authentik.rubenhensen.nl through Hetzner

Same pattern as rss — needed so the OIDC redirect from freshrss (and
other relying parties) works for clients outside the home LAN.
This commit is contained in:
Ruben Hensen
2026-05-19 22:50:56 +02:00
parent ff9c2d3cef
commit cb7cba25d0
2 changed files with 14 additions and 3 deletions
+1 -1
View File
@@ -18,7 +18,7 @@ records:
- name: "authentik" - name: "authentik"
expire: 300 expire: 300
type: A type: A
content: "62.41.87.114" content: "46.224.26.65"
- name: "ldap" - name: "ldap"
expire: 300 expire: 300
type: A type: A
+11
View File
@@ -54,6 +54,7 @@ in
streamConfig = '' streamConfig = ''
map $ssl_preread_server_name $tunnel_upstream { map $ssl_preread_server_name $tunnel_upstream {
rss.rubenhensen.nl ${homeIP}:443; rss.rubenhensen.nl ${homeIP}:443;
authentik.rubenhensen.nl ${homeIP}:443;
default 127.0.0.1:8443; default 127.0.0.1:8443;
} }
@@ -78,6 +79,16 @@ in
}; };
}; };
virtualHosts."authentik.rubenhensen.nl" = {
listen = [
{ addr = "0.0.0.0"; port = 80; }
{ addr = "[::]"; port = 80; }
];
locations."/" = {
proxyPass = "http://${homeIP}";
};
};
virtualHosts."mail.rubenhensen.nl" = { virtualHosts."mail.rubenhensen.nl" = {
listen = [ listen = [
{ addr = "0.0.0.0"; port = 80; } { addr = "0.0.0.0"; port = 80; }