role-traefik/templates/traefik.yaml.j2

34 lines
711 B
Plaintext
Raw Normal View History

2023-09-18 16:42:05 +00:00
# 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
2023-09-19 18:04:00 +00:00
file:
directory: /etc/traefik/config
watch: true
2023-09-18 16:42:05 +00:00
# API and dashboard configuration
api:
# insecure: true
2023-09-18 17:16:27 +00:00
dashboard: {{ traefik_dashboard }}
2023-09-18 16:42:05 +00:00
certificatesResolvers:
resolver:
acme:
email: {{ traefik_yaml_acme_email }}
storage: /letsencrypt/acme.json
httpChallenge:
entryPoint: web