traefik/traefik.yml

50 lines
919 B
YAML
Raw Normal View History

2023-11-24 17:46:05 +01:00
## STATIC CONFIGURATION
2023-12-05 11:41:04 +01:00
global:
checkNewVersion: true
sendAnonymousUsage: false
2023-11-24 17:46:05 +01:00
log:
2023-12-05 11:41:04 +01:00
level: "INFO"
accessLog:
filePath: "/logs/access.log"
bufferingSize: 100 # Configuring a buffer of 100 lines
filters:
statusCodes: "204-299,400"
2023-11-24 17:46:05 +01:00
api:
insecure: true
dashboard: true
entryPoints:
web:
address: ":80"
http:
redirections:
entryPoint:
to: websecure
websecure:
address: ":443"
http:
middlewares:
- secureHeaders@file
ssh:
address: ":22"
providers:
docker:
endpoint: "unix:///var/run/docker.sock"
exposedByDefault: false
2023-12-05 11:41:04 +01:00
# endpoint: "tcp://dockerproxy:2375"
2023-11-24 17:46:05 +01:00
# swarmMode: false
# network: "socket_proxy"
file:
2023-12-05 11:41:04 +01:00
watch: true
directory: "/etc/traefik/dynamic_conf"
certificatesresolvers:
le:
acme:
email: "raphy.martin@protonmail.ch"
storage: "/certificates/acme.json"
tlschallenge: true