christianlempa-boilerplates/docker-compose/traefik/config/traefik.yaml
2024-11-08 11:06:02 +01:00

59 lines
1.4 KiB
YAML

global:
checkNewVersion: false
sendAnonymousUsage: false
# --> (Optional) Change log level and format here ...
# - level: [TRACE, DEBUG, INFO, WARN, ERROR, FATAL]
# log:
# level: ERROR
# <--
# --> (Optional) Enable accesslog here ...
# accesslog: {}
# <--
# --> (Optional) Enable API and Dashboard here, don't do in production
# api:
# dashboard: true
# insecure: true
# <--
# -- Change EntryPoints here...
entryPoints:
web:
address: :80
# --> (Optional) Redirect all HTTP to HTTPS
# http:
# redirections:
# entryPoint:
# to: websecure
# scheme: https
# <--
websecure:
address: :443
# -- Configure your CertificateResolver here...
certificatesResolvers:
cloudflare:
acme:
email: your-email@example.com # <-- Change this to your email
storage: /var/traefik/certs/cloudflare-acme.json
caServer: "https://acme-v02.api.letsencrypt.org/directory"
dnsChallenge:
provider: cloudflare # <-- (Optional) Change this to your DNS provider
resolvers:
- "1.1.1.1:53"
- "8.8.8.8:53"
# --> (Optional) Disable TLS Cert verification check
# serversTransport:
# insecureSkipVerify: true
# <--
providers:
docker:
exposedByDefault: false # <-- (Optional) Change this to true if you want to expose all services
file:
directory: /etc/traefik
watch: true