Advertisement
TommyTunes

Untitled

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