This commit is contained in:
Jean 2022-11-07 21:30:04 +01:00
parent 04ec9a6748
commit 453f7590d1
1 changed files with 13 additions and 3 deletions

View File

@ -1,8 +1,6 @@
http: http:
middlewares: middlewares:
common-auth: # Middleware applied globally at the entrypoint level (applied to all routers using "secure" entrypoint)
basicAuth:
usersFile: "/etc/traefik/http_auth"
security-headers: security-headers:
headers: headers:
forceSTSHeader: true forceSTSHeader: true
@ -15,6 +13,18 @@ http:
frameDeny: true frameDeny: true
contentTypeNosniff: true contentTypeNosniff: true
browserXssFilter: true browserXssFilter: true
customresponseheaders:
X-Frame-Options: sameorigin
Content-Security-Policy: frame-ancestors https://*.{{ env "TRAEFIK_DOMAIN" }}
customrequestheaders:
X-Frame-Options: sameorigin
Content-Security-Policy: frame-ancestors https://*.{{ env "TRAEFIK_DOMAIN" }}
# Middlewares which are used automatically by the run-seedbox.sh script according to the parameters applied
common-auth:
basicAuth:
usersFile: "/etc/traefik/http_auth"
redirect-to-https: redirect-to-https:
redirectScheme: redirectScheme:
scheme: https scheme: https