traefik.yaml 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. global:
  2. checkNewVersion: false
  3. sendAnonymousUsage: false
  4. # -- (Optional) Change Log Level and Format here...
  5. # - loglevels [DEBUG, INFO, WARNING, ERROR, CRITICAL]
  6. # - format [common, json, logfmt]
  7. # log:
  8. # level: ERROR
  9. # format: common
  10. # filePath: /var/log/traefik/traefik.log
  11. # -- (Optional) Enable Accesslog and change Format here...
  12. # - format [common, json, logfmt]
  13. # accesslog:
  14. # format: common
  15. # filePath: /var/log/traefik/access.log
  16. # -- (Optional) Enable API and Dashboard here, don't do in production
  17. # api:
  18. # dashboard: true
  19. # disableDashboardAd: true
  20. # insecure: true
  21. # -- Change EntryPoints here...
  22. entryPoints:
  23. web:
  24. address: :80
  25. # -- (Optional) Redirect all HTTP to HTTPS
  26. # http:
  27. # redirections:
  28. # entryPoint:
  29. # to: websecure
  30. # scheme: https
  31. websecure:
  32. address: :443
  33. # -- (Optional) Add custom Entrypoint
  34. # custom:
  35. # address: :8080
  36. # -- Configure your CertificateResolver here...
  37. # certificatesResolvers:
  38. # staging:
  39. # acme:
  40. # email: your-email@example.com
  41. # storage: /etc/traefik/certs/acme.json
  42. # caServer: "https://acme-staging-v02.api.letsencrypt.org/directory"
  43. # -- (Optional) Remove this section, when using DNS Challenge
  44. # httpChallenge:
  45. # entryPoint: web
  46. # -- (Optional) Configure DNS Challenge
  47. # dnsChallenge:
  48. # provider: your-resolver (e.g. cloudflare)
  49. # resolvers:
  50. # - "1.1.1.1:53"
  51. # - "8.8.8.8:53"
  52. # production:
  53. # acme:
  54. # email: your-email@example.com
  55. # storage: /etc/traefik/certs/acme.json
  56. # caServer: "https://acme-v02.api.letsencrypt.org/directory"
  57. # -- (Optional) Remove this section, when using DNS Challenge
  58. # httpChallenge:
  59. # entryPoint: web
  60. # -- (Optional) Configure DNS Challenge
  61. # dnsChallenge:
  62. # provider: your-resolver (e.g. cloudflare)
  63. # resolvers:
  64. # - "1.1.1.1:53"
  65. # - "8.8.8.8:53"
  66. # -- (Optional) Disable TLS Cert verification check
  67. # serversTransport:
  68. # insecureSkipVerify: true
  69. # -- (Optional) Overwrite Default Certificates
  70. # tls:
  71. # stores:
  72. # default:
  73. # defaultCertificate:
  74. # certFile: /etc/traefik/certs/cert.pem
  75. # keyFile: /etc/traefik/certs/cert-key.pem
  76. # -- (Optional) Disable TLS version 1.0 and 1.1
  77. # options:
  78. # default:
  79. # minVersion: VersionTLS12
  80. providers:
  81. docker:
  82. # -- (Optional) Enable this, if you want to expose all containers automatically
  83. exposedByDefault: false
  84. file:
  85. directory: /etc/traefik
  86. watch: true