homelab/roles/traefik/templates/security.yml.j2

19 lines
442 B
Plaintext
Raw Normal View History

tls:
options:
default:
minVersion: VersionTLS12
http:
middlewares:
securehttps:
headers:
frameDeny: true
sslRedirect: true
browserXssFilter: true
contentTypeNosniff: true
2022-08-19 03:32:37 +00:00
{% if traefik_hsts_enable is defined and traefik_hsts_enable %}
stsPreload: {{ traefik_hsts_preload }}
stsSeconds: {{ traefik_hsts_seconds }}
2022-08-19 03:32:37 +00:00
{% endif %}
customFrameOptionsValue: SAMEORIGIN