Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- global:
- checkNewVersion: true
- sendAnonymousUsage: false
- serversTransport:
- insecureSkipVerify: true
- entryPoints:
- # Not used in apps, but redirect everything from HTTP to HTTPS
- http:
- address: :80
- #forwardedHeaders:
- # trustedIPs: &trustedIps
- # # Start of Clouflare public IP list for HTTP requests, remove this if you don't use it
- # - 173.245.48.0/20
- # - 103.21.244.0/22
- # # End of Cloudlare public IP list
- http:
- redirections:
- entryPoint:
- to: https
- scheme: https
- middlewares:
- - securityHeaders@file
- # HTTPS endpoint, with domain wildcard
- https:
- address: :443
- #forwardedHeaders:
- # Reuse list of Cloudflare Trusted IP's above for HTTPS requests
- #trustedIPs: *trustedIps
- # middlewares:
- # - securityHeaders@file
- providers:
- providersThrottleDuration: 2s
- # File provider for connecting things that are outside of docker / defining middleware
- file:
- directory: /etc/traefik/dynamic
- #filename: /etc/traefik/fileConfig.yml
- watch: true
- # Docker provider for connecting all apps that are inside of the docker network
- docker:
- watch: true
- network: elastic # Add Your Docker Network Name Here
- # Default host rule to containername.domain.example
- defaultRule: "Host(`{{ index .Labels \"com.docker.compose.service\"}}.domain.tld`)"
- exposedByDefault: false
- #endpoint: unix:///var/run/docker.sock
- #endpoint: tcp://dockersocket:2375 # Uncomment if you are using docker socket proxy
- # Enable traefik ui
- api:
- dashboard: true
- insecure: true
- # Log level INFO|DEBUG|ERROR
- log:
- level: DEBUG
- filePath: /etc/traefik/logfile.log
- accessLog:
- filePath: /etc/traefik/access.log
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement