role-traefik/templates/traefik.yaml.j2
2023-09-18 18:42:05 +02:00

32 lines
624 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: true
certificatesResolvers:
resolver:
acme:
email: {{ traefik_yaml_acme_email }}
storage: /letsencrypt/acme.json
httpChallenge:
entryPoint: web