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

36 lines
688 B
Plaintext
Raw Normal View History

2020-07-17 04:41:21 +00:00
api:
dashboard: true
providers:
docker:
exposedbydefault: false
file:
directory: /etc/traefik/dynamic
entrypoints:
web:
address: ':80'
http:
redirections:
entrypoint:
to: websecure
scheme: https
permanent: true
websecure:
address: ':443'
http:
tls: {}
2020-09-03 23:00:27 +00:00
{% if traefik_acme_email is defined %}
certificatesResolvers:
letsencrypt:
2020-09-03 23:00:27 +00:00
acme:
email: {{ traefik_acme_email }}
storage: /etc/traefik/acme.json
{% if not traefik_production -%}
caServer: https://acme-staging-v02.api.letsencrypt.org/directory
{% endif -%}
httpChallenge:
entryPoint: web
{% endif %}