Add Traefik toggles
This commit is contained in:
parent
7522c333da
commit
95f54b7f0a
@ -20,7 +20,6 @@
|
||||
- docker
|
||||
- traefik
|
||||
- nextcloud
|
||||
- gitea
|
||||
- jenkins
|
||||
- prometheus
|
||||
- nginx
|
||||
|
@ -3,8 +3,10 @@ traefik_dashboard: false
|
||||
traefik_root: "/opt/{{ traefik_name }}"
|
||||
traefik_localonly: "10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16, 127.0.0.0/8"
|
||||
traefik_production: false
|
||||
traefik_hsts_enable: false
|
||||
traefik_hsts_preload: false
|
||||
traefik_hsts_seconds: 0
|
||||
traefik_http_redirect: false
|
||||
traefik_ports:
|
||||
- "80:80"
|
||||
- "443:443"
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user