traefik.yml 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. global:
  2. checkNewVersion: true
  3. sendAnonymousUsage: false # true by default
  4. # (Optional) Log information
  5. # ---
  6. # log:
  7. # level: ERROR # DEBUG, INFO, WARNING, ERROR, CRITICAL
  8. # format: common # common, json, logfmt
  9. # filePath: /var/log/traefik/traefik.log
  10. # (Optional) Accesslog
  11. # ---
  12. # accesslog:
  13. # format: common # common, json, logfmt
  14. # filePath: /var/log/traefik/access.log
  15. # (Optional) Enable API and Dashboard
  16. # ---
  17. # api:
  18. # dashboard: true # true by default
  19. # insecure: true # Don't do this in production!
  20. # Entry Points configuration
  21. # ---
  22. entryPoints:
  23. web:
  24. address: :80
  25. # (Optional) Redirect to HTTPS
  26. # ---
  27. # http:
  28. # redirections:
  29. # entryPoint:
  30. # to: websecure
  31. # scheme: https
  32. websecure:
  33. address: :443
  34. # Configure your CertificateResolver here...
  35. # ---
  36. # certificatesResolvers:
  37. # staging:
  38. # acme:
  39. # email: your-email@example.com
  40. # storage: /etc/traefik/certs/acme.json
  41. # caServer: "https://acme-staging-v02.api.letsencrypt.org/directory"
  42. # httpChallenge:
  43. # entryPoint: web
  44. #
  45. # production:
  46. # acme:
  47. # email: your-email@example.com
  48. # storage: /etc/traefik/certs/acme.json
  49. # caServer: "https://acme-v02.api.letsencrypt.org/directory"
  50. # httpChallenge:
  51. # entryPoint: web
  52. # (Optional) Overwrite Default Certificates
  53. # tls:
  54. # stores:
  55. # default:
  56. # defaultCertificate:
  57. # certFile: /etc/traefik/certs/cert.pem
  58. # keyFile: /etc/traefik/certs/cert-key.pem
  59. # (Optional) Disable TLS version 1.0 and 1.1
  60. # options:
  61. # default:
  62. # minVersion: VersionTLS12
  63. providers:
  64. docker:
  65. exposedByDefault: false # Default is true
  66. file:
  67. # watch for dynamic configuration changes
  68. directory: /etc/traefik
  69. watch: true