Add default secure headers for Traefik

This commit is contained in:
Jake Howard 2025-05-17 22:29:52 +01:00
parent d59e140924
commit 809af5c369
No known key found for this signature in database
GPG key ID: 57AFB45680EDD477
2 changed files with 9 additions and 0 deletions

View file

@ -3,6 +3,14 @@ http:
compress:
compress: {}
secure-headers:
headers:
stsSeconds: 2592000
contentTypeNosniff: true
browserXssFilter: true
customResponseHeaders:
Server: ''
# https://paramdeo.com/blog/opting-your-website-out-of-googles-floc-network
floc-block:
headers:

View file

@ -17,6 +17,7 @@ entryPoints:
middlewares:
- floc-block@file
- compress@file
- secure-headers@file
tls:
certResolver: le
domains: