traefik.yaml 1.6 KB

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