traefik/traefik.sample.toml

147 lines
3 KiB
TOML
Raw Normal View History

2015-09-14 13:38:58 +00:00
################################################################
# Global configuration
################################################################
# Enable debug mode
#
# Optional
# Default: false
#
# debug = true
2015-09-14 13:38:58 +00:00
# Log level
#
# Optional
# Default: "ERROR"
#
2018-03-12 09:40:04 +00:00
# logLevel = "DEBUG"
2015-09-14 13:38:58 +00:00
2018-03-12 09:40:04 +00:00
################################################################
# Entrypoints configuration
################################################################
2017-08-28 16:07:37 +00:00
# Entrypoints definition
#
# Optional
2017-08-28 16:07:37 +00:00
# Default:
[entrypoints]
[entrypoints.web]
2017-08-28 16:07:37 +00:00
address = ":80"
2018-03-12 09:40:04 +00:00
################################################################
# Traefik logs configuration
################################################################
# 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"
2018-03-12 09:40:04 +00:00
################################################################
# Access logs configuration
################################################################
# 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]
# 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
# 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
################################################################
2018-03-12 09:40:04 +00:00
# API and dashboard configuration
2015-09-14 13:38:58 +00:00
################################################################
2018-03-12 09:40:04 +00:00
# Enable API and dashboard
[api]
2015-09-14 13:38:58 +00:00
2018-03-12 09:40:04 +00:00
# Name of the related entry point
#
# Optional
# Default: "traefik"
#
# entryPoint = "traefik"
# Enabled Dashboard
#
# Optional
# Default: true
#
# dashboard = false
################################################################
# Ping configuration
################################################################
# Enable ping
[ping]
# Name of the related entry point
#
# Optional
# Default: "traefik"
#
# entryPoint = "traefik"
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.
#
# Optional
2017-08-28 16:07:37 +00:00
# Default: ""
#
# domain = "docker.localhost"
2017-08-28 16:07:37 +00:00
# Expose containers by default in traefik
#
# Optional
# Default: true
#
2018-04-06 07:38:03 +00:00
# exposedByDefault = true