pilot-playbooks/templates/traefik.yml.j2
2022-07-02 16:22:50 +02:00

32 lines
510 B
Django/Jinja

entryPoints:
http:
address: ":80"
{% if with_https == 'yes' %}
https:
address: ":443"
{% endif %}
log:
level: {{ log_level }}
{% if with_dashboard == 'yes' %}
api:
dashboard: true
insecure: true
{% endif %}
providers:
docker:
network: "web"
endpoint: "unix:///var/run/docker.sock"
{% if with_https == 'yes' %}
certificatesResolvers:
letsencrypt:
acme:
email: "{{ acme_email }}"
storage = "acme.json"
httpChallenge:
entryPoint: "http"
{% endif %}