Add magic token domain for hass to allow app access

This commit is contained in:
2025-10-04 14:36:58 +10:00
parent facc3c64b2
commit 7f3161b2bb
3 changed files with 29 additions and 3 deletions

View File

@@ -114,6 +114,15 @@ http:
forwardAuth:
address: "http://192.168.1.235:9091/api/authz/forward-auth"
trustForwardHeader: true
auth-allow-token:
chain:
middlewares:
- auth
- strip-magic-token
strip-magic-token:
stripPrefix:
prefixes:
- "/magic-token/{token:[A-Z0-9]+}"
routers:
fallback:
rule: "HostRegexp(`^.+$`)"
@@ -143,6 +152,14 @@ http:
service: frigate
middlewares:
- auth
hass:
rule: "Host(`hass.othrayte.one`)"
service: hass
middlewares:
- auth
hass-token:
rule: "Host(`${hass_magic_token}-hass.othrayte.one`)"
service: hass
services:
nomad-ui:
@@ -161,6 +178,10 @@ http:
loadBalancer:
servers:
- url: "http://192.168.1.192:5000"
hass:
loadBalancer:
servers:
- url: "http://192.168.1.234:8123"
EOF
destination = "local/configs/nomad.yml"