role-traefik/templates/traefik.yaml.j2

32 lines
643 B
Django/Jinja

# traefik.yml
entryPoints:
web:
address: ":80"
http:
redirections:
entryPoint:
to: websecure
websecure:
address: ":443"
# Docker configuration backend
providers:
docker:
endpoint: "unix:///var/run/docker.sock"
network: systemd-traefik
# API and dashboard configuration
api:
# insecure: true
dashboard: {{ traefik_dashboard }}
certificatesResolvers:
resolver:
acme:
email: {{ traefik_yaml_acme_email }}
storage: /letsencrypt/acme.json
httpChallenge:
entryPoint: web