example.traefik.yml 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. ################################################################
  2. #
  3. # Configuration sample for Traefik v2.
  4. #
  5. # For Traefik v1: https://github.com/traefik/traefik/blob/v1.7/traefik.sample.toml
  6. #
  7. ################################################################
  8. ################################################################
  9. # Global configuration
  10. ################################################################
  11. global:
  12. checkNewVersion: true
  13. sendAnonymousUsage: true
  14. ################################################################
  15. # EntryPoints configuration
  16. ################################################################
  17. # EntryPoints definition
  18. #
  19. # Optional
  20. #
  21. entryPoints:
  22. web:
  23. address: :80
  24. websecure:
  25. address: :443
  26. ################################################################
  27. # Traefik logs configuration
  28. ################################################################
  29. # Traefik logs
  30. # Enabled by default and log to stdout
  31. #
  32. # Optional
  33. #
  34. #log:
  35. # Log level
  36. #
  37. # Optional
  38. # Default: "ERROR"
  39. #
  40. # level: DEBUG
  41. # Sets the filepath for the traefik log. If not specified, stdout will be used.
  42. # Intermediate directories are created if necessary.
  43. #
  44. # Optional
  45. # Default: os.Stdout
  46. #
  47. # filePath: log/traefik.log
  48. # Format is either "json" or "common".
  49. #
  50. # Optional
  51. # Default: "common"
  52. #
  53. # format: json
  54. ################################################################
  55. # Access logs configuration
  56. ################################################################
  57. # Enable access logs
  58. # By default it will write to stdout and produce logs in the textual
  59. # Common Log Format (CLF), extended with additional fields.
  60. #
  61. # Optional
  62. #
  63. #accessLog:
  64. # Sets the file path for the access log. If not specified, stdout will be used.
  65. # Intermediate directories are created if necessary.
  66. #
  67. # Optional
  68. # Default: os.Stdout
  69. #
  70. # filePath: /path/to/log/log.txt
  71. # Format is either "json" or "common".
  72. #
  73. # Optional
  74. # Default: "common"
  75. #
  76. # format: json
  77. ################################################################
  78. # API and dashboard configuration
  79. ################################################################
  80. # Enable API and dashboard
  81. #
  82. # Optional
  83. #
  84. #api:
  85. # Enable the API in insecure mode
  86. #
  87. # Optional
  88. # Default: false
  89. #
  90. # insecure: true
  91. # Enabled Dashboard
  92. #
  93. # Optional
  94. # Default: true
  95. #
  96. # dashboard: false
  97. ################################################################
  98. # Ping configuration
  99. ################################################################
  100. # Enable ping
  101. #ping:
  102. # Name of the related entry point
  103. #
  104. # Optional
  105. # Default: "traefik"
  106. #
  107. # entryPoint: traefik
  108. ################################################################
  109. # Docker configuration backend
  110. ################################################################
  111. #providers:
  112. # Enable Docker configuration backend
  113. # docker:
  114. # Docker server endpoint. Can be a tcp or a unix socket endpoint.
  115. #
  116. # Required
  117. # Default: "unix:///var/run/docker.sock"
  118. #
  119. # endpoint: tcp://10.10.10.10:2375
  120. # Default host rule.
  121. #
  122. # Optional
  123. # Default: "Host(`{{ normalize .Name }}`)"
  124. #
  125. # defaultRule: Host(`{{ normalize .Name }}.docker.localhost`)
  126. # Expose containers by default in traefik
  127. #
  128. # Optional
  129. # Default: true
  130. #
  131. # exposedByDefault: false