Skip to content

Commit 505a316

Browse files
authored
Merge pull request #670 from OpenHistoricalMap/traefik_allow_iframe
Update traefik config to allow iframe for vtiles
2 parents 417c8f9 + 813a5ab commit 505a316

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

hetzner/traefik/traefik.yml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,20 @@ http:
3737
# # Trust only known proxy headers (adjust based on your infrastructure)
3838
# hostsProxyHeaders: ["X-Forwarded-Host"]
3939

40+
secure-headers-allow-iframe:
41+
headers:
42+
# Allows iframe embedding (for comparison tools)
43+
frameDeny: false
44+
# Enables XSS protection in older browsers
45+
browserXssFilter: true
46+
# Prevents browsers from MIME-sniffing (forces declared Content-Type)
47+
contentTypeNosniff: true
48+
# Enforces HTTPS via HSTS
49+
forceSTSHeader: true
50+
stsSeconds: 31536000 # 1 year
51+
stsIncludeSubdomains: true
52+
stsPreload: true
53+
4054
redirect-nominatim:
4155
redirectRegex:
4256
regex: "^https://(nominatim(?:\\.staging)?\\.openhistoricalmap\\.org)/?$"
@@ -53,7 +67,7 @@ http:
5367
tls:
5468
certResolver: letsencrypt
5569
middlewares:
56-
- secure-headers
70+
- secure-headers-allow-iframe
5771

5872
tiler_cache-production-router:
5973
rule: Host(`tiler-cache.openhistoricalmap.org`)
@@ -145,7 +159,7 @@ http:
145159
tls:
146160
certResolver: letsencrypt
147161
middlewares:
148-
- secure-headers
162+
- secure-headers-allow-iframe
149163

150164
overpass-api-staging-router:
151165
rule: Host(`overpass-api.staging.openhistoricalmap.org`)

0 commit comments

Comments
 (0)