infrastructure/ansible/roles/traefik/files/traefik.yml

49 lines
927 B
YAML

entryPoints:
web:
address: :80
proxyProtocol:
trustedIPs:
- "{{ wireguard.cidr }}"
web-secure:
address: :443
proxyProtocol:
trustedIPs:
- "{{ wireguard.cidr }}"
matrix:
address: :8448
proxyProtocol:
trustedIPs:
- "{{ wireguard.cidr }}"
traefik:
address: "{{ wireguard.clients[ansible_fqdn].ip }}:8080"
ping: {}
providers:
docker:
endpoint: unix:///var/run/docker.sock
watch: true
exposedByDefault: false
file:
filename: /etc/traefik/file-provider.yml
api:
dashboard: true
insecure: true
certificatesResolvers:
le:
acme:
email: hosting@theorangeone.net
storage: /etc/traefik/acme.json
httpChallenge:
entryPoint: web
serversTransport:
insecureSkipVerify: true
metrics:
influxDB:
address: "{{ wireguard.clients[ansible_fqdn].ip }}:38089"
database: traefik
pushInterval: 30s