christianlempa-boilerplates/docker-compose/traefik/config/traefik.yaml

95 lines
2.5 KiB
YAML
Raw Normal View History

2021-09-24 14:05:19 +02:00
global:
2023-08-16 12:14:38 +02:00
checkNewVersion: false
sendAnonymousUsage: false
2021-09-24 14:05:19 +02:00
2023-08-16 12:14:38 +02:00
# -- (Optional) Change Log Level and Format here...
# - loglevels [DEBUG, INFO, WARNING, ERROR, CRITICAL]
# - format [common, json, logfmt]
2021-09-24 14:05:19 +02:00
# log:
2023-08-16 12:14:38 +02:00
# level: ERROR
2023-09-19 13:57:14 +02:00
# format: common
# filePath: /var/log/traefik/traefik.log
2021-09-24 14:05:19 +02:00
2023-08-16 12:14:38 +02:00
# -- (Optional) Enable Accesslog and change Format here...
# - format [common, json, logfmt]
2021-09-24 14:05:19 +02:00
# accesslog:
2023-08-16 12:14:38 +02:00
# format: common
# filePath: /var/log/traefik/access.log
2021-09-24 14:05:19 +02:00
2023-08-16 12:14:38 +02:00
# -- (Optional) Enable API and Dashboard here, don't do in production
2021-09-24 14:05:19 +02:00
# api:
2023-08-16 12:14:38 +02:00
# dashboard: true
# disableDashboardAd: true
2023-08-16 12:14:38 +02:00
# insecure: true
2021-09-24 14:05:19 +02:00
2023-08-16 12:14:38 +02:00
# -- Change EntryPoints here...
2021-09-24 14:05:19 +02:00
entryPoints:
web:
address: :80
2023-08-16 12:14:38 +02:00
# -- (Optional) Redirect all HTTP to HTTPS
2021-09-24 14:05:19 +02:00
# http:
2021-10-12 22:37:42 +02:00
# redirections:
2021-09-24 14:05:19 +02:00
# entryPoint:
# to: websecure
# scheme: https
websecure:
address: :443
2023-08-16 12:14:38 +02:00
# -- (Optional) Add custom Entrypoint
# custom:
# address: :8080
2021-09-24 14:05:19 +02:00
2023-08-16 12:14:38 +02:00
# -- Configure your CertificateResolver here...
# certificatesResolvers:
# staging:
# acme:
# email: your-email@example.com
# storage: /etc/traefik/certs/acme.json
# caServer: "https://acme-staging-v02.api.letsencrypt.org/directory"
2023-08-16 12:14:38 +02:00
# -- (Optional) Remove this section, when using DNS Challenge
# httpChallenge:
# entryPoint: web
2023-08-16 12:14:38 +02:00
# -- (Optional) Configure DNS Challenge
# dnsChallenge:
# provider: your-resolver (e.g. cloudflare)
# resolvers:
# - "1.1.1.1:53"
# - "8.8.8.8:53"
# production:
# acme:
# email: your-email@example.com
# storage: /etc/traefik/certs/acme.json
# caServer: "https://acme-v02.api.letsencrypt.org/directory"
2023-08-16 12:14:38 +02:00
# -- (Optional) Remove this section, when using DNS Challenge
# httpChallenge:
# entryPoint: web
2023-08-16 12:14:38 +02:00
# -- (Optional) Configure DNS Challenge
# dnsChallenge:
# provider: your-resolver (e.g. cloudflare)
# resolvers:
# - "1.1.1.1:53"
# - "8.8.8.8:53"
2023-08-16 14:18:54 +02:00
# -- (Optional) Disable TLS Cert verification check
# serversTransport:
# insecureSkipVerify: true
2023-08-16 12:14:38 +02:00
# -- (Optional) Overwrite Default Certificates
# tls:
# stores:
# default:
# defaultCertificate:
# certFile: /etc/traefik/certs/cert.pem
# keyFile: /etc/traefik/certs/cert-key.pem
2023-08-16 12:14:38 +02:00
# -- (Optional) Disable TLS version 1.0 and 1.1
# options:
# default:
# minVersion: VersionTLS12
2021-09-24 14:05:19 +02:00
providers:
docker:
2023-08-16 12:14:38 +02:00
# -- (Optional) Enable this, if you want to expose all containers automatically
exposedByDefault: false
file:
directory: /etc/traefik
watch: true