traefik.yaml 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. global:
  2. checkNewVersion: false
  3. sendAnonymousUsage: false
  4. # --> (Optional) Change log level and format here ...
  5. # - level: [TRACE, DEBUG, INFO, WARN, ERROR, FATAL]
  6. # log:
  7. # level: ERROR
  8. # <--
  9. # --> (Optional) Enable accesslog here ...
  10. # accesslog: {}
  11. # <--
  12. # --> (Optional) Enable API and Dashboard here, don't do in production
  13. # api:
  14. # dashboard: true
  15. # insecure: true
  16. # <--
  17. # -- Change EntryPoints here...
  18. entryPoints:
  19. web:
  20. address: :80
  21. # --> (Optional) Redirect all HTTP to HTTPS
  22. # http:
  23. # redirections:
  24. # entryPoint:
  25. # to: websecure
  26. # scheme: https
  27. # <--
  28. websecure:
  29. address: :443
  30. # -- Configure your CertificateResolver here...
  31. certificatesResolvers:
  32. cloudflare:
  33. acme:
  34. email: your-email@example.com # <-- Change this to your email
  35. storage: /var/traefik/certs/cloudflare-acme.json
  36. caServer: "https://acme-v02.api.letsencrypt.org/directory"
  37. dnsChallenge:
  38. provider: cloudflare # <-- (Optional) Change this to your DNS provider
  39. resolvers:
  40. - "1.1.1.1:53"
  41. - "8.8.8.8:53"
  42. # --> (Optional) Disable TLS Cert verification check
  43. # serversTransport:
  44. # insecureSkipVerify: true
  45. # <--
  46. providers:
  47. docker:
  48. exposedByDefault: false # <-- (Optional) Change this to true if you want to expose all services
  49. file:
  50. directory: /etc/traefik
  51. watch: true