| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- ---
- 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
- # Specify discovery network - This ensures correct name resolving and possible issues with containers, that are in multiple networks.
- # E.g. Database container in a separate network and a container in the frontend and database network.
- network: frontend
- file:
- directory: /etc/traefik
- watch: true
|