Skip to content

Instantly share code, notes, and snippets.

@prayagsingh
Forked from jakubhajek/traefik.yml
Created April 27, 2020 11:07
Show Gist options
  • Select an option

  • Save prayagsingh/cf7dd19b632ecb5c19c49a4fa9477137 to your computer and use it in GitHub Desktop.

Select an option

Save prayagsingh/cf7dd19b632ecb5c19c49a4fa9477137 to your computer and use it in GitHub Desktop.

Revisions

  1. @jakubhajek jakubhajek revised this gist Mar 16, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion traefik.yml
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    og:
    log:
    level: info
    format: json

  2. @jakubhajek jakubhajek created this gist Mar 16, 2020.
    62 changes: 62 additions & 0 deletions traefik.yml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,62 @@
    og:
    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: [email protected]
    storage: /letsencrypt/acme.json
    tlsChallenge: true

    api:
    dashboard: true