Add magic token domain for hass to allow app access
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user