homeassistant headers

This commit is contained in:
Kyattsukuro 2026-01-15 23:42:22 +01:00
parent 7292582844
commit ff3881428c
2 changed files with 15 additions and 5 deletions

View File

@ -18,6 +18,7 @@ http:
forward-duckdns:
service: noop@internal
rule: HostRegexp(`(.+\.)?urmel\.duckdns\.org`)
priority: 1
middlewares: redirect-duckdns@file
tls:
certResolver: duckdns

View File

@ -1,16 +1,25 @@
http:
http:
routers:
homeassistant:
service: homeassistant
rule: Host(`home.urmel.de`)
priority: 10
entryPoints:
- https
- http
tls: true
tls:
certResolver: hetzner
middlewares:
- homeassistant-headers
services:
homeassistant:
homeassistant:
loadbalancer:
servers:
- url: "http://172.24.2.4:8123"
passHostHeader: true
passHostHeader: true
middlewares:
homeassistant-headers:
headers:
customRequestHeaders:
X-Frame-Options: "ALLOW-FROM *"
Content-Security-Policy: "frame-ancestors *"