2015-09-14 13:38:58 +00:00
|
|
|
################################################################
|
|
|
|
# Global configuration
|
|
|
|
################################################################
|
|
|
|
|
2016-10-27 14:17:02 +00:00
|
|
|
# Enable debug mode
|
|
|
|
#
|
|
|
|
# Optional
|
|
|
|
# Default: false
|
|
|
|
#
|
|
|
|
# debug = true
|
|
|
|
|
2015-09-14 13:38:58 +00:00
|
|
|
# Log level
|
|
|
|
#
|
|
|
|
# Optional
|
|
|
|
# Default: "ERROR"
|
|
|
|
#
|
|
|
|
# logLevel = "ERROR"
|
|
|
|
|
2016-02-25 17:30:13 +00:00
|
|
|
# Entrypoints to be used by frontends that do not specify any entrypoint.
|
|
|
|
# Each frontend can specify its own entrypoints.
|
|
|
|
#
|
|
|
|
# Optional
|
|
|
|
# Default: ["http"]
|
|
|
|
#
|
|
|
|
# defaultEntryPoints = ["http", "https"]
|
|
|
|
|
2017-08-28 16:07:37 +00:00
|
|
|
# Entrypoints definition
|
2016-03-15 15:50:14 +00:00
|
|
|
#
|
|
|
|
# Optional
|
2017-08-28 16:07:37 +00:00
|
|
|
# Default:
|
|
|
|
[entryPoints]
|
|
|
|
[entryPoints.http]
|
|
|
|
address = ":80"
|
2016-03-15 15:50:14 +00:00
|
|
|
|
2017-09-21 08:42:02 +00:00
|
|
|
# Traefik logs
|
|
|
|
# Enabled by default and log to stdout
|
|
|
|
#
|
|
|
|
# Optional
|
|
|
|
#
|
|
|
|
# [traefikLog]
|
|
|
|
|
|
|
|
# Sets the filepath for the traefik log. If not specified, stdout will be used.
|
|
|
|
# Intermediate directories are created if necessary.
|
|
|
|
#
|
|
|
|
# Optional
|
|
|
|
# Default: os.Stdout
|
|
|
|
#
|
|
|
|
# filePath = "log/traefik.log"
|
|
|
|
|
|
|
|
# Format is either "json" or "common".
|
|
|
|
#
|
|
|
|
# Optional
|
|
|
|
# Default: "common"
|
|
|
|
#
|
|
|
|
# format = "common"
|
|
|
|
|
2017-05-30 10:06:49 +00:00
|
|
|
# Enable access logs
|
|
|
|
# By default it will write to stdout and produce logs in the textual
|
|
|
|
# Common Log Format (CLF), extended with additional fields.
|
2017-05-25 11:25:53 +00:00
|
|
|
#
|
|
|
|
# Optional
|
|
|
|
#
|
|
|
|
# [accessLog]
|
|
|
|
|
2017-05-30 10:06:49 +00:00
|
|
|
# Sets the file path for the access log. If not specified, stdout will be used.
|
|
|
|
# Intermediate directories are created if necessary.
|
2017-05-25 11:25:53 +00:00
|
|
|
#
|
|
|
|
# Optional
|
2017-05-30 10:06:49 +00:00
|
|
|
# Default: os.Stdout
|
2017-05-25 11:25:53 +00:00
|
|
|
#
|
|
|
|
# filePath = "/path/to/log/log.txt"
|
|
|
|
|
|
|
|
# Format is either "json" or "common".
|
|
|
|
#
|
|
|
|
# Optional
|
|
|
|
# Default: "common"
|
|
|
|
#
|
|
|
|
# format = "common"
|
|
|
|
|
2015-09-14 13:38:58 +00:00
|
|
|
################################################################
|
|
|
|
# Web configuration backend
|
|
|
|
################################################################
|
|
|
|
|
|
|
|
# Enable web configuration backend
|
2017-08-28 16:07:37 +00:00
|
|
|
[web]
|
2015-09-14 13:38:58 +00:00
|
|
|
|
|
|
|
# Web administration port
|
|
|
|
#
|
|
|
|
# Required
|
|
|
|
#
|
2017-08-28 16:07:37 +00:00
|
|
|
address = ":8080"
|
2015-09-14 13:38:58 +00:00
|
|
|
|
|
|
|
################################################################
|
|
|
|
# Docker configuration backend
|
|
|
|
################################################################
|
|
|
|
|
|
|
|
# Enable Docker configuration backend
|
2017-08-28 16:07:37 +00:00
|
|
|
[docker]
|
2015-09-14 13:38:58 +00:00
|
|
|
|
|
|
|
# Docker server endpoint. Can be a tcp or a unix socket endpoint.
|
|
|
|
#
|
|
|
|
# Required
|
2017-08-28 16:07:37 +00:00
|
|
|
# Default: "unix:///var/run/docker.sock"
|
2015-09-14 13:38:58 +00:00
|
|
|
#
|
2017-08-28 16:07:37 +00:00
|
|
|
# endpoint = "tcp://10.10.10.10:2375"
|
2015-09-14 13:38:58 +00:00
|
|
|
|
|
|
|
# Default domain used.
|
|
|
|
# Can be overridden by setting the "traefik.domain" label on a container.
|
|
|
|
#
|
2016-07-14 09:32:15 +00:00
|
|
|
# Optional
|
2017-08-28 16:07:37 +00:00
|
|
|
# Default: ""
|
2016-08-05 14:02:46 +00:00
|
|
|
#
|
|
|
|
# domain = "docker.localhost"
|
|
|
|
|
2017-08-28 16:07:37 +00:00
|
|
|
# Expose containers by default in traefik
|
2016-08-05 14:02:46 +00:00
|
|
|
#
|
|
|
|
# Optional
|
|
|
|
# Default: true
|
|
|
|
#
|
|
|
|
# exposedbydefault = true
|