move homeassistant to caddy with authentik

This commit is contained in:
2024-11-16 16:33:05 +01:00
parent e4656171e1
commit 9fe3566929
2 changed files with 29 additions and 24 deletions

View File

@@ -20,7 +20,28 @@ authentik.rik.veenboer.xyz {
reverse_proxy /outpost.goauthentik.io/* http://host:19000 reverse_proxy /outpost.goauthentik.io/* http://host:19000
forward_auth http://host:19000 { forward_auth http://host:19000 {
uri /outpost.goauthentik.io/auth/caddy?rd={http.request.uri} uri /outpost.goauthentik.io/auth/caddy?rd={http.request.uri}
copy_headers X-Authentik-Username X-Authentik-Groups X-Authentik-Email X-Authentik-Name X-Authentik-Uid X-Authentik-Jwt X-Authentik-Meta-Jwks X-Authentik-Meta-Outpost X-Authentik-Meta-Provider X-Authentik-Meta-App X-Authentik-Meta-Version copy_headers {
X-Authentik-Username
X-Authentik-Groups
X-Authentik-Email
X-Authentik-Name
X-Authentik-Uid
X-Authentik-Jwt
X-Authentik-Meta-Jwks
X-Authentik-Meta-Outpost
X-Authentik-Meta-Provider
X-Authentik-Meta-App
X-Authentik-Meta-Version
X-Authentik-Other
X-Authentik-Password
X-Authentik-This
X-Authentik-What
Authorization>X-Custom-Authorization
X-Custom-User
X-Custom-Password
X-User-Header
X-Homeassistant-User
}
} }
} }
@@ -39,3 +60,10 @@ import proxy photoprism host:2342
import proxy qbittorrent host:9092 import proxy qbittorrent host:9092
import proxy esp host:6052 import proxy esp host:6052
import proxy dsmr host:8888 import proxy dsmr host:8888
import proxy ha host:8123 # homeassistant
insecure.rik.veenboer.xyz {
route {
reverse_proxy host:12345
}
}

View File

@@ -53,29 +53,6 @@ server {
} }
} }
server {
# homeassistant
listen 80;
server_name ha.rik.veenboer.xyz;
location / {
proxy_pass http://host:8123;
include /etc/nginx/conf/proxy.conf;
}
}
server {
# homeassistant
listen 80;
server_name ha-loazrzzxydfxopwi.rik.veenboer.xyz;
location / {
proxy_pass http://host:8123;
include /etc/nginx/conf/proxy.conf;
proxy_set_header X-Forwarded-Preferred-Username rik;
}
}
server { server {
# homarr # homarr
listen 80; listen 80;