traefik/traefik.toml

206 lines
3.9 KiB
TOML
Raw Normal View History

2015-09-14 12:38:21 +00:00
################################################################
# Global configuration
################################################################
# Reverse proxy port
#
# Optional
# Default: ":80"
#
2015-09-14 13:38:58 +00:00
port = ":8081"
2015-09-14 12:38:21 +00:00
# Timeout in seconds.
# Duration to give active requests a chance to finish during hot-reloads
#
# Optional
# Default: 10
#
# graceTimeOut = 10
# Traefik logs file
#
# Optional
#
2015-09-11 16:55:38 +00:00
# traefikLogsFile = "log/traefik.log"
2015-09-14 12:38:21 +00:00
# Traefik log to standard output
#
# Optional
# Default: true
#
# traefikLogsStdout = true
# Access logs file
#
# Optional
#
# accessLogsFile = "log/access.log"
# Log level
#
# Optional
# Default: "ERROR"
#
# logLevel = "ERROR"
# SSL certificate and key used
#
# Optional
#
2015-09-11 22:37:57 +00:00
# CertFile = "traefik.crt"
# KeyFile = "traefik.key"
2015-09-09 15:50:02 +00:00
2015-09-14 12:38:21 +00:00
################################################################
# Web configuration backend
################################################################
# Enable web configuration backend
#
# Optional
#
2015-09-14 13:38:58 +00:00
[web]
2015-09-14 12:38:21 +00:00
# Web administration port
#
# Required
#
2015-09-14 13:38:58 +00:00
address = ":8082"
2015-09-14 12:38:21 +00:00
################################################################
# File configuration backend
################################################################
# Enable file configuration backend
#
# Optional
#
# [file]
# Rules file
# If defined, traefik will load rules from this file,
# otherwise, it will load rules from current file (cf Sample rules below).
#
# Optional
#
# filename = "rules.toml"
# Enable watch file changes
#
# Optional
#
# watch = true
################################################################
# Docker configuration backend
################################################################
# Enable Docker configuration backend
#
# Optional
#
2015-09-14 13:38:58 +00:00
[docker]
2015-09-14 12:38:21 +00:00
# Docker server endpoint. Can be a tcp or a unix socket endpoint.
#
# Required
#
2015-09-14 13:38:58 +00:00
endpoint = "unix:///var/run/docker.sock"
2015-09-14 12:38:21 +00:00
# Enable watch docker changes
#
# Optional
#
2015-09-14 13:38:58 +00:00
watch = true
2015-09-14 12:38:21 +00:00
# Default domain used.
# Can be overridden by setting the "traefik.domain" label on a container.
#
# Required
#
2015-09-14 13:38:58 +00:00
domain = "docker.localhost"
2015-09-14 12:38:21 +00:00
# Override default configuration template. For advanced users :)
#
# Optional
#
2015-09-11 17:25:49 +00:00
# filename = "docker.tmpl"
2015-09-14 12:38:21 +00:00
################################################################
# Mesos/Marathon configuration backend
################################################################
# Enable Marathon configuration backend
#
# Optional
#
2015-09-10 15:31:52 +00:00
# [marathon]
2015-09-14 12:38:21 +00:00
# Marathon server endpoint.
# You can also specify multiple endpoint for Marathon:
# endpoint := "http://10.241.1.71:8080,10.241.1.72:8080,10.241.1.73:8080"
#
# Required
#
2015-09-10 15:31:52 +00:00
# endpoint = "http://127.0.0.1:8080"
2015-09-14 12:38:21 +00:00
# Network interface used to call Marathon web services
# Optional
# Default: "eth0"
#
2015-09-10 15:31:52 +00:00
# networkInterface = "eth0"
2015-09-14 12:38:21 +00:00
# Enable watch Marathon changes
#
# Optional
#
2015-09-10 15:31:52 +00:00
# watch = true
2015-09-14 12:38:21 +00:00
# Default domain used.
# Can be overridden by setting the "traefik.domain" label on an application.
#
# Required
#
# domain = "marathon.localhost"
# Override default configuration template. For advanced users :)
#
# Optional
#
2015-09-10 15:31:52 +00:00
# filename = "marathon.tmpl"
2015-09-07 21:25:07 +00:00
2015-09-08 11:33:10 +00:00
2015-09-14 12:38:21 +00:00
################################################################
# Sample rules
################################################################
# [backends]
# [backends.backend1]
# [backends.backend1.servers.server1]
# url = "http://172.17.0.2:80"
# weight = 10
# [backends.backend1.servers.server2]
# url = "http://172.17.0.3:80"
# weight = 1
# [backends.backend2]
# [backends.backend2.servers.server1]
# url = "http://172.17.0.4:80"
# weight = 1
# [backends.backend2.servers.server2]
# url = "http://172.17.0.5:80"
# weight = 2
#
# [frontends]
# [frontends.frontend1]
2015-09-14 12:38:21 +00:00
# backend = "backend2"
# [frontends.frontend1.routes.test_1]
2015-09-14 12:38:21 +00:00
# category = "Host"
# value = "test.localhost"
# [frontends.frontend2]
2015-09-14 12:38:21 +00:00
# backend = "backend1"
# [frontends.frontend2.routes.test_2]
2015-09-14 12:38:21 +00:00
# category = "Path"
# value = "/test"