Skip to content

Instantly share code, notes, and snippets.

@jakubhajek
Created March 16, 2020 13:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save jakubhajek/69c5322e4ef1d222abb39e4f426a4dfc to your computer and use it in GitHub Desktop.
Save jakubhajek/69c5322e4ef1d222abb39e4f426a4dfc to your computer and use it in GitHub Desktop.
The example of Traefik 2.x configuration that is set on startup.
log:
level: info
format: json
accessLog:
format: json
bufferingSize: 5
providers:
docker:
watch: true
endpoint: "unix:///var/run/docker.sock"
exposedByDefault: false
swarmMode: true
network: proxy-main
swarmModeRefreshSeconds: 5
consulCatalog:
exposedByDefault: false
refreshInterval: 15
stale: true
cache: true
endpoint:
address: "http://consul-leader:8500"
scheme: foobar
file:
directory: /conf.d
watch: true
entryPoints:
web:
address: ":80"
forwardedHeaders:
insecure: true
websecure:
address: ":443"
forwardedHeaders:
insecure: true
ping:
address: ":8082"
metrics:
address: ":8083"
ping:
entryPoint: ping
metrics:
prometheus:
entryPoint: metrics
certificatesResolvers:
le:
acme:
email: kuba@cometari.com
storage: /letsencrypt/acme.json
tlsChallenge: true
api:
dashboard: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment