Guest User

Untitled

a guest
Oct 18th, 2024
41
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.64 KB | None | 0 0
  1. serversTransport:
  2. insecureSkipVerify: true
  3.  
  4. global:
  5. checkNewVersion: true
  6. sendAnonymousUsage: false
  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. - 172.18.0.0/16
  16. - 173.245.48.0/20
  17. - 103.21.244.0/22
  18. - 103.22.200.0/22
  19. - 103.31.4.0/22
  20. - 141.101.64.0/18
  21. - 108.162.192.0/18
  22. - 190.93.240.0/20
  23. - 188.114.96.0/20
  24. - 197.234.240.0/22
  25. - 198.41.128.0/17
  26. - 162.158.0.0/15
  27. - 104.16.0.0/13
  28. - 104.24.0.0/14
  29. - 172.64.0.0/13
  30. - 131.0.72.0/22
  31. - 2400:cb00::/32
  32. - 2606:4700::/32
  33. - 2803:f800::/32
  34. - 2405:b500::/32
  35. - 2405:8100::/32
  36. - 2a06:98c0::/29
  37. - 2c0f:f248::/32
  38. # End of Cloudlare public IP list
  39. http:
  40. redirections:
  41. entryPoint:
  42. to: https
  43. scheme: https
  44.  
  45. # HTTPS endpoint, with domain wildcard
  46. https:
  47. address: :443
  48. forwardedHeaders:
  49. # Reuse list of Cloudflare Trusted IP's above for HTTPS requests
  50. trustedIPs: *trustedIps
  51. http:
  52. tls:
  53. # Generate a wildcard domain certificate
  54. certResolver: letsencrypt
  55. domains:
  56. - main: domain.com
  57. sans:
  58. - '*.domain.com'
  59. middlewares:
  60. #- securityHeaders@file
  61. - my-crowdsec-bouncer-traefik-plugin@file
  62. - my-cloudflarewarp@file
  63. - my-plugin-log4shell@file
  64. #- my-traefik-themepark@file
  65. - my-geoblock@file
  66. providers:
  67. providersThrottleDuration: 2s
  68.  
  69. # File provider for connecting things that are outside of docker / defining middleware
  70. file:
  71. filename: /etc/traefik/fileConfig.yml
  72. watch: true
  73.  
  74. # Docker provider for connecting all apps that are inside of the docker network
  75. docker:
  76. watch: true
  77. network: custom # Add Your Docker Network Name Here
  78. # Default host rule to containername.domain.example
  79. defaultRule: "Host(`{{ lower (trimPrefix `/` .Name )}}.domain.com`)" # Replace with your domain
  80. #swarmModeRefreshSeconds: 15s
  81. exposedByDefault: false
  82. endpoint: "tcp://dockersocket:2375" # Uncomment if you are using docker socket proxy
  83.  
  84. # Enable traefik ui
  85. api:
  86. dashboard: true
  87. insecure: true
  88.  
  89. # Log level INFO|DEBUG|ERROR
  90. log:
  91. level: DEBUG
  92.  
  93. # Use letsencrypt to generate ssl serficiates
  94. certificatesResolvers:
  95. letsencrypt:
  96. acme:
  97. storage: /etc/traefik/acme.json
  98. dnsChallenge:
  99. provider: cloudflare
  100. # Used to make sure the dns challenge is propagated to the rights dns servers
  101. resolvers:
  102. - "1.1.1.1:53"
  103. - "8.8.8.8:53"
  104. accessLog:
  105. filePath: "/var/log/crowdsec/traefik.log"
  106. bufferingSize: 50
  107. experimental:
  108. plugins:
  109. crowdsec-bouncer-traefik-plugin:
  110. moduleName: "github.com/maxlerebourg/crowdsec-bouncer-traefik-plugin"
  111. version: "v1.3.4"
  112. traefik-themepark:
  113. moduleName: "github.com/packruler/traefik-themepark"
  114. version: "v1.3.0"
  115. plugin-log4shell:
  116. moduleName: "github.com/traefik/plugin-log4shell"
  117. version: "v0.1.2"
  118. geoblock:
  119. moduleName: "github.com/PascalMinder/geoblock"
  120. version: "v0.2.8"
  121. cloudflarewarp:
  122. moduleName: "github.com/BetterCorp/cloudflarewarp"
  123. version: "v1.3.3"
  124. rewrite-headers:
  125. moduleName: "github.com/XciD/traefik-plugin-rewrite-headers"
  126. version: "v0.0.4"
Advertisement
Add Comment
Please, Sign In to add comment