Files
Containr/infra/traefik.yml
T
2026-04-10 12:02:36 +02:00

70 lines
1.2 KiB
YAML

# Traefik Static Configuration
api:
dashboard: true
insecure: true # Enable dashboard without authentication for local development
debug: false
providers:
docker:
endpoint: "unix:///var/run/docker.sock"
exposedByDefault: false
network: containr-network
watch: true
entryPoints:
web:
address: ":80"
http:
redirections:
entryPoint:
to: websecure
scheme: https
permanent: true
websecure:
address: ":443"
http:
middlewares:
- secureHeaders@file
certificatesResolvers:
myresolver:
acme:
email: ${ACME_EMAIL}
storage: /letsencrypt/acme.json
httpChallenge:
entryPoint: web
log:
level: INFO
filePath: "/var/log/traefik/traefik.log"
format: json
accessLog:
filePath: "/var/log/traefik/access.log"
format: json
bufferingSize: 100
fields:
defaultMode: keep
names:
ClientUsername: drop
headers:
defaultMode: keep
names:
User-Agent: keep
Authorization: drop
Content-Type: keep
metrics:
prometheus:
addEntryPointsLabels: true
addServicesLabels: true
manualRouting: true
ping:
entryPoint: web
global:
checkNewVersion: true
sendAnonymousUsage: false