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: forward-duckdns:
service: noop@internal service: noop@internal
rule: HostRegexp(`(.+\.)?urmel\.duckdns\.org`) rule: HostRegexp(`(.+\.)?urmel\.duckdns\.org`)
priority: 1
middlewares: redirect-duckdns@file middlewares: redirect-duckdns@file
tls: tls:
certResolver: duckdns certResolver: duckdns

View File

@ -3,14 +3,23 @@ http:
homeassistant: homeassistant:
service: homeassistant service: homeassistant
rule: Host(`home.urmel.de`) rule: Host(`home.urmel.de`)
priority: 10
entryPoints: entryPoints:
- https - https
- http - http
tls: true tls:
certResolver: hetzner
middlewares:
- homeassistant-headers
services: services:
homeassistant: homeassistant:
loadbalancer: loadbalancer:
servers: servers:
- url: "http://172.24.2.4:8123" - 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 *"