Traefik: HSTS
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Tobias Manske 2023-09-25 22:34:28 +02:00
parent ddefcdb550
commit b9ca14a4e1
Signed by: tobias
GPG Key ID: 9164B527694A0709
2 changed files with 14 additions and 0 deletions

View File

@ -37,3 +37,13 @@ http:
replacePathRegex: replacePathRegex:
regex: "^/metrics$" regex: "^/metrics$"
replacement: "/" replacement: "/"
hsts:
headers:
frameDeny: true
contentTypeNosniff: true
browserXssFilter: true
forceSTSHeader: true
sslRedirect: true
stsPreload: true
stsSeconds: 315360000
stsIncludeSubdomains: true

View File

@ -20,6 +20,8 @@ entryPoints:
to: websecure to: websecure
scheme: https scheme: https
permanent: true permanent: true
middlewares:
- "hsts@file"
metrics: metrics:
address: ":9091" address: ":9091"
http: http:
@ -28,6 +30,8 @@ entryPoints:
websecure: websecure:
address: ":443" address: ":443"
http: http:
middlewares:
- "hsts@file"
tls: tls:
certResolver: letsencrypt certResolver: letsencrypt