jaysun_n

traefik.yaml

Jul 18th, 2025
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.54 KB | None | 0 0
  1. ################################################
  2. ################################## observability
  3. ################################################
  4.  
  5. #----------------------: https://doc.traefik.io/traefik/contributing/data-collection/
  6. global:
  7. checkNewVersion: true
  8. sendAnonymousUsage: true # send anonymous usage data
  9.  
  10. #----------------------: https://doc.traefik.io/traefik/operations/api/
  11. api:
  12. dashboard: true
  13. insecure: false # control access via http://traefikIPv4:8080/dashboard/
  14. debug: false
  15. disableDashboardAd: true
  16.  
  17. #----------------------: https://doc.traefik.io/traefik/observability/access-logs/
  18. accesslog:
  19. # filePath: "/var/log/traefik-access.log"
  20. addInternals: true
  21. bufferingSize: 128
  22.  
  23. #----------------------: https://doc.traefik.io/traefik/observability/logs/
  24. log:
  25. # filePath: "/var/log/traefik.log"
  26. level: DEBUG # TRACE DEBUG INFO WARN ERROR FATAL PANIC
  27. maxAge: 48
  28.  
  29. #----------------------: https://doc.traefik.io/traefik/observability/metrics/overview/
  30. metrics:
  31. addInternals: true
  32.  
  33. #----------------------: https://doc.traefik.io/traefik/observability/tracing/overview/
  34. #tracing:
  35. # addInternals: true
  36. # otlp: {}
  37.  
  38. ################################################
  39. #################################### environment
  40. ################################################
  41.  
  42. #----------------------: https://doc.traefik.io/traefik/routing/entrypoints/
  43. entryPoints:
  44. http:
  45. address: ":80"
  46. http:
  47. middlewares:
  48. - internal-hosts-endorsed
  49. https:
  50. address: ":443"
  51. http:
  52. middlewares:
  53. - internal-hosts-endorsed
  54.  
  55. #----------------------: https://doc.traefik.io/traefik/providers/overview/
  56. providers:
  57.  
  58. #----------------------: https://doc.traefik.io/traefik/providers/docker/
  59. # docker:
  60. # exposedbydefault: false
  61.  
  62. #----------------------: https://doc.traefik.io/traefik/providers/file/
  63. file:
  64. # filename: /etc/traefik/dynamic.yaml # when a specific file is desired
  65. directory: /etc/traefik/dynamic
  66. watch: true
  67.  
  68. #----------------------: https://doc.traefik.io/traefik/https/acme/
  69. certificatesresolvers:
  70. cloudflare:
  71. acme:
  72. caServer: https://acme-v02.api.letsencrypt.org/directory # prod
  73. # caServer: https://acme-staging-v02.api.letsencrypt.org/directory # test
  74. email: [email protected] # valid Cloudflare-account email
  75. storage: /etc/traefik/acme.json
  76. dnschallenge:
  77. provider: cloudflare
  78. resolvers:
  79. - "1.1.1.1:53"
  80. - "1.0.0.1:53"
Advertisement
Add Comment
Please, Sign In to add comment