Advertisement
-Dal-

traefik.yml

Mar 7th, 2024
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.77 KB | None | 0 0
  1. global:
  2. checkNewVersion: true
  3. sendAnonymousUsage: false
  4.  
  5. serversTransport:
  6. insecureSkipVerify: true
  7.  
  8. entryPoints:
  9. # Not used in apps, but redirect everything from HTTP to HTTPS
  10. http:
  11. address: :80
  12. #forwardedHeaders:
  13. # trustedIPs: &trustedIps
  14. # # Start of Clouflare public IP list for HTTP requests, remove this if you don't use it
  15. # - 173.245.48.0/20
  16. # - 103.21.244.0/22
  17. # # End of Cloudlare public IP list
  18. http:
  19. redirections:
  20. entryPoint:
  21. to: https
  22. scheme: https
  23. middlewares:
  24. - securityHeaders@file
  25.  
  26. # HTTPS endpoint, with domain wildcard
  27. https:
  28. address: :443
  29. #forwardedHeaders:
  30. # Reuse list of Cloudflare Trusted IP's above for HTTPS requests
  31. #trustedIPs: *trustedIps
  32. # middlewares:
  33. # - securityHeaders@file
  34.  
  35. providers:
  36. providersThrottleDuration: 2s
  37.  
  38. # File provider for connecting things that are outside of docker / defining middleware
  39. file:
  40. directory: /etc/traefik/dynamic
  41. #filename: /etc/traefik/fileConfig.yml
  42. watch: true
  43.  
  44. # Docker provider for connecting all apps that are inside of the docker network
  45. docker:
  46. watch: true
  47. network: elastic # Add Your Docker Network Name Here
  48. # Default host rule to containername.domain.example
  49. defaultRule: "Host(`{{ index .Labels \"com.docker.compose.service\"}}.domain.tld`)"
  50. exposedByDefault: false
  51. #endpoint: unix:///var/run/docker.sock
  52. #endpoint: tcp://dockersocket:2375 # Uncomment if you are using docker socket proxy
  53.  
  54. # Enable traefik ui
  55. api:
  56. dashboard: true
  57. insecure: true
  58.  
  59. # Log level INFO|DEBUG|ERROR
  60. log:
  61. level: DEBUG
  62. filePath: /etc/traefik/logfile.log
  63. accessLog:
  64. filePath: /etc/traefik/access.log
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement