traefik/traefik.yaml

67 lines
1.6 KiB
YAML
Raw Permalink Normal View History

2025-07-02 11:05:05 +02:00
providers:
file:
directory: /etc/traefik/conf.d/
docker:
endpoint: tcp://nas.lab:2375
exposedByDefault: false
useBindPortIP: true
entryPoints:
web:
address: ':80'
http:
redirections:
entryPoint:
to: websecure
scheme: https
websecure:
address: ':443'
http:
tls:
2025-07-02 16:38:28 +02:00
certResolver: cloudflare
ssh:
address: ':2222'
2025-07-02 11:05:05 +02:00
traefik:
address: ':8080'
certificatesResolvers:
cloudflare:
acme:
email: s.nilsson@me.com
storage: /etc/traefik/ssl/acme.json
2025-07-02 16:38:28 +02:00
#caServer: https://acme-v02.api.letsencrypt.org/directory # prod (default)
#caServer: https://acme-staging-v02.api.letsencrypt.org/directory # staging
2025-07-02 11:05:05 +02:00
dnsChallenge:
provider: cloudflare
#disablePropagationCheck: true # uncomment this if you have issues pulling certificates through cloudflare, By setting this flag to true disables the need to wait for the propagation of the TXT record to all authoritative name servers.
#delayBeforeCheck: 60s # uncomment along with disablePropagationCheck if needed to ensure the TXT record is ready before verification is attempted
resolvers:
- "1.1.1.1:53"
- "1.0.0.1:53"
api:
dashboard: true
insecure: true
tracing: {}
log:
filePath: /var/log/traefik/traefik.log
format: json
level: INFO
accessLog:
filePath: /var/log/traefik/traefik-access.log
format: json
filters:
statusCodes:
- "200"
- "400-599"
retryAttempts: true
minDuration: "10ms"
bufferingSize: 0
fields:
headers:
defaultMode: drop
names:
User-Agent: keep