Skip to content

Instantly share code, notes, and snippets.

@mattmcla
Created September 5, 2017 16:23
Show Gist options
  • Save mattmcla/26dc1d9fdbe3030ba27f67e41565a3a2 to your computer and use it in GitHub Desktop.
Save mattmcla/26dc1d9fdbe3030ba27f67e41565a3a2 to your computer and use it in GitHub Desktop.
################################################################
# Consul Catalog configuration backend
################################################################
[entryPoints]
[entryPoints.http]
address = ":80"
# Enable web configuration backend
[web]
# Web administration port
#
# Required
#
address = ":8080"
# Enable Consul Catalog configuration backend
[consulCatalog]
# Consul server endpoint
#
# Required
#
endpoint = "127.0.0.1:8500"
# Default domain used.
#
# Optional
#
domain = "consul.localhost"
# Expose Consul catalog services by default in traefik
#
# Optional
#
exposedByDefault = false
# Prefix for Consul catalog tags
#
# Optional
#
prefix = "traefik"
# Default frontEnd Rule for Consul services
#
# The format is a Go Template with:
# - ".ServiceName", ".Domain" and ".Attributes" available
# - "getTag(name, tags, defaultValue)", "hasTag(name, tags)" and "getAttribute(name, tags, defaultValue)" functions are available
# - "getAttribute(...)" function uses prefixed tag names based on "prefix" value
#
# Optional
#
#frontEndRule = "Host:{{.ServiceName}}.{{Domain}}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment