docker-compose-collection/traefik/traefik.yml

48 lines
1.1 KiB
YAML
Raw Normal View History

2023-02-05 16:32:56 +08:00
## STATIC CONFIGURATION
log:
level: INFO
api:
insecure: false
dashboard: true
experimental:
http3: true
entryPoints:
web:
address: ":80" # Create the HTTP entrypoint on port 80
http:
redirections: # HTTPS redirection (80 to 443)
entryPoint:
to: "websecure" # The target element
scheme: "https"
# The redirection target scheme
websecure:
address: ":443"
http:
tls:
certResolver: letsencrypt
domains:
- main: '*.xxx.domain'
sans:
- xxx.domain
http3: {}
global:
checknewversion: false # Periodically check if a new version has been released.
sendanonymoususage: false # Periodically send anonymous usage statistics.
providers:
docker:
exposedByDefault: false
file:
filename: "/dynamic.yml"
certificatesResolvers:
letsencrypt:
acme:
email: xxx@xxx
storage: /letsencrypt/acme.json
dnsChallenge:
provider: cloudflare