Add Traefik toggles
This commit is contained in:
@@ -11,6 +11,8 @@ http:
|
||||
sslRedirect: true
|
||||
browserXssFilter: true
|
||||
contentTypeNosniff: true
|
||||
{% if traefik_hsts_enable is defined and traefik_hsts_enable %}
|
||||
stsPreload: {{ traefik_hsts_preload }}
|
||||
stsSeconds: {{ traefik_hsts_seconds }}
|
||||
{% endif %}
|
||||
customFrameOptionsValue: SAMEORIGIN
|
||||
|
@@ -10,12 +10,14 @@ providers:
|
||||
entrypoints:
|
||||
web:
|
||||
address: ':80'
|
||||
{% if traefik_http_redirect is defined and traefik_http_redirect %}
|
||||
http:
|
||||
redirections:
|
||||
entrypoint:
|
||||
to: websecure
|
||||
scheme: https
|
||||
permanent: true
|
||||
{% endif %}
|
||||
websecure:
|
||||
address: ':443'
|
||||
http:
|
||||
|
Reference in New Issue
Block a user