2020-07-17 04:41:21 +00:00
|
|
|
api:
|
|
|
|
dashboard: true
|
|
|
|
|
|
|
|
providers:
|
|
|
|
docker:
|
|
|
|
exposedbydefault: false
|
2023-05-04 03:27:03 +00:00
|
|
|
ansible.builtin.file:
|
2020-07-17 04:41:21 +00:00
|
|
|
directory: /etc/traefik/dynamic
|
|
|
|
|
|
|
|
entrypoints:
|
|
|
|
web:
|
|
|
|
address: ':80'
|
2023-04-21 07:04:53 +00:00
|
|
|
{% if traefik_http_redirect is defined and traefik_http_redirect and not traefik_http_only %}
|
2020-07-17 04:41:21 +00:00
|
|
|
http:
|
|
|
|
redirections:
|
|
|
|
entrypoint:
|
|
|
|
to: websecure
|
|
|
|
scheme: https
|
|
|
|
permanent: true
|
2022-08-19 03:32:37 +00:00
|
|
|
{% endif %}
|
2023-04-21 07:04:53 +00:00
|
|
|
{% if not traefik_http_only is defined or not traefik_http_only %}
|
2020-07-17 04:41:21 +00:00
|
|
|
websecure:
|
|
|
|
address: ':443'
|
|
|
|
http:
|
|
|
|
tls: {}
|
2023-04-21 07:04:53 +00:00
|
|
|
{% endif %}
|
2020-09-03 23:00:27 +00:00
|
|
|
|
|
|
|
{% if traefik_acme_email is defined %}
|
|
|
|
certificatesResolvers:
|
2020-09-04 06:14:12 +00:00
|
|
|
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 %}
|