traefik.yaml 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  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. # insecure: true
  20. # -- Change EntryPoints here...
  21. entryPoints:
  22. web:
  23. address: :80
  24. # -- (Optional) Redirect all HTTP to HTTPS
  25. # http:
  26. # redirections:
  27. # entryPoint:
  28. # to: websecure
  29. # scheme: https
  30. websecure:
  31. address: :443
  32. # -- (Optional) Add custom Entrypoint
  33. # custom:
  34. # address: :8080
  35. # -- Configure your CertificateResolver here...
  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. # -- (Optional) Remove this section, when using DNS Challenge
  43. # httpChallenge:
  44. # entryPoint: web
  45. # -- (Optional) Configure DNS Challenge
  46. # dnsChallenge:
  47. # provider: your-resolver (e.g. cloudflare)
  48. # resolvers:
  49. # - "1.1.1.1:53"
  50. # - "8.8.8.8:53"
  51. # production:
  52. # acme:
  53. # email: your-email@example.com
  54. # storage: /etc/traefik/certs/acme.json
  55. # caServer: "https://acme-v02.api.letsencrypt.org/directory"
  56. # -- (Optional) Remove this section, when using DNS Challenge
  57. # httpChallenge:
  58. # entryPoint: web
  59. # -- (Optional) Configure DNS Challenge
  60. # dnsChallenge:
  61. # provider: your-resolver (e.g. cloudflare)
  62. # resolvers:
  63. # - "1.1.1.1:53"
  64. # - "8.8.8.8:53"
  65. # -- (Optional) Disable TLS Cert verification check
  66. # serversTransport:
  67. # insecureSkipVerify: true
  68. # -- (Optional) Overwrite Default Certificates
  69. # tls:
  70. # stores:
  71. # default:
  72. # defaultCertificate:
  73. # certFile: /etc/traefik/certs/cert.pem
  74. # keyFile: /etc/traefik/certs/cert-key.pem
  75. # -- (Optional) Disable TLS version 1.0 and 1.1
  76. # options:
  77. # default:
  78. # minVersion: VersionTLS12
  79. providers:
  80. docker:
  81. # -- (Optional) Enable this, if you want to expose all containers automatically
  82. exposedByDefault: false
  83. file:
  84. directory: /etc/traefik
  85. watch: true