Forked from
infrastruktur / ansible-warpzone
733 commits behind the upstream repository.
traefik.yml 1.56 KiB
# Global settings
global:
checkNewVersion: true
# Entrypoints
entryPoints:
# HTTP, redirect all to HTTPS
web:
address: ":80"
http:
redirections:
entryPoint:
to: "websecure"
scheme: "https"
permanent: true
# HTTPS, get certificates from letsencrypt
websecure:
address: ":443"
http:
tls:
certResolver: "letsencrypt"
{% if matrix_federation is defined and matrix_federation == true %}
# additional entrypoint for matrix-federation
matrix_federation:
address: ":8448"
http:
tls:
certResolver: "letsencrypt"
{% endif %}
# Discover configuration via docker
# use network 'web' for interconnect
providers:
docker:
watch: true
endpoint: "unix:///var/run/docker.sock"
network: "web"
exposedByDefault: false
file:
directory: "/etc/traefik/dynamic"
watch: true
# Traefik API and dashboard
api:
insecure: true
dashboard: true
debug: false
# Enable Ping endpoint for docker healthcheck
ping: {}
# Enable prometheus metrics
metrics:
prometheus:
addEntryPointsLabels: true
addServicesLabels: true
# Logging