Enhance Traefik TOML sample.
This commit is contained in:
parent
8fbac2e39e
commit
fc81d92c88
11 changed files with 71 additions and 32 deletions
|
@ -5,11 +5,15 @@ traefikLogsFile = "log/traefik.log"
|
||||||
accessLogsFile = "log/access.log"
|
accessLogsFile = "log/access.log"
|
||||||
logLevel = "DEBUG"
|
logLevel = "DEBUG"
|
||||||
|
|
||||||
|
[entryPoints]
|
||||||
|
[entryPoints.api]
|
||||||
|
address = ":7888"
|
||||||
|
|
||||||
################################################################
|
################################################################
|
||||||
# Web configuration backend
|
# API configuration
|
||||||
################################################################
|
################################################################
|
||||||
[web]
|
[api]
|
||||||
address = ":7888"
|
entryPoint = "api"
|
||||||
|
|
||||||
################################################################
|
################################################################
|
||||||
# File configuration backend
|
# File configuration backend
|
||||||
|
|
|
@ -5,11 +5,15 @@ traefikLogsFile = "log/traefik.log"
|
||||||
accessLogsFile = "log/access.log"
|
accessLogsFile = "log/access.log"
|
||||||
logLevel = "DEBUG"
|
logLevel = "DEBUG"
|
||||||
|
|
||||||
|
[entryPoints]
|
||||||
|
[entryPoints.api]
|
||||||
|
address = ":7888"
|
||||||
|
|
||||||
################################################################
|
################################################################
|
||||||
# Web configuration backend
|
# API configuration
|
||||||
################################################################
|
################################################################
|
||||||
[web]
|
[api]
|
||||||
address = ":7888"
|
entryPoint = "api"
|
||||||
|
|
||||||
################################################################
|
################################################################
|
||||||
# File configuration backend
|
# File configuration backend
|
||||||
|
|
|
@ -11,7 +11,6 @@ defaultEntryPoints = ["http", "https"]
|
||||||
address = ":443"
|
address = ":443"
|
||||||
[entryPoints.https.tls]
|
[entryPoints.https.tls]
|
||||||
|
|
||||||
|
|
||||||
[acme]
|
[acme]
|
||||||
email = "test@traefik.io"
|
email = "test@traefik.io"
|
||||||
storage = "/etc/traefik/conf/acme.json"
|
storage = "/etc/traefik/conf/acme.json"
|
||||||
|
@ -19,12 +18,10 @@ entryPoint = "https"
|
||||||
onDemand = false
|
onDemand = false
|
||||||
OnHostRule = true
|
OnHostRule = true
|
||||||
caServer = "http://traefik.localhost.com:4000/directory"
|
caServer = "http://traefik.localhost.com:4000/directory"
|
||||||
[acme.httpChallenge]
|
[acme.httpChallenge]
|
||||||
entryPoint="http"
|
entryPoint="http"
|
||||||
|
|
||||||
|
[api]
|
||||||
[web]
|
|
||||||
address = ":8080"
|
|
||||||
|
|
||||||
[docker]
|
[docker]
|
||||||
endpoint = "unix:///var/run/docker.sock"
|
endpoint = "unix:///var/run/docker.sock"
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
traefik:
|
traefik:
|
||||||
image: traefik
|
image: traefik
|
||||||
command: --web --rancher --rancher.domain=rancher.localhost --rancher.endpoint=http://example.com --rancher.accesskey=XXXXXXX --rancher.secretkey=YYYYYY --logLevel=DEBUG
|
command: --api --rancher --rancher.domain=rancher.localhost --rancher.endpoint=http://example.com --rancher.accesskey=XXXXXXX --rancher.secretkey=YYYYYY --logLevel=DEBUG
|
||||||
ports:
|
ports:
|
||||||
- "80:80"
|
- "80:80"
|
||||||
- "443:443"
|
- "443:443"
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
traefik:
|
traefik:
|
||||||
image: traefik
|
image: traefik
|
||||||
command: -c /dev/null --web --docker --docker.domain=docker.localhost --logLevel=DEBUG
|
command: -c /dev/null --api --docker --docker.domain=docker.localhost --logLevel=DEBUG
|
||||||
ports:
|
ports:
|
||||||
- "80:80"
|
- "80:80"
|
||||||
- "8080:8080"
|
- "8080:8080"
|
||||||
|
|
|
@ -29,7 +29,7 @@ spec:
|
||||||
- image: traefik
|
- image: traefik
|
||||||
name: traefik-ingress-lb
|
name: traefik-ingress-lb
|
||||||
args:
|
args:
|
||||||
- --web
|
- --api
|
||||||
- --kubernetes
|
- --kubernetes
|
||||||
---
|
---
|
||||||
kind: Service
|
kind: Service
|
||||||
|
|
|
@ -35,7 +35,7 @@ spec:
|
||||||
privileged: true
|
privileged: true
|
||||||
args:
|
args:
|
||||||
- -d
|
- -d
|
||||||
- --web
|
- --api
|
||||||
- --kubernetes
|
- --kubernetes
|
||||||
---
|
---
|
||||||
kind: Service
|
kind: Service
|
||||||
|
|
|
@ -17,8 +17,8 @@ entryPoint = "https"
|
||||||
onDemand = {{.OnDemand}}
|
onDemand = {{.OnDemand}}
|
||||||
OnHostRule = {{.OnHostRule}}
|
OnHostRule = {{.OnHostRule}}
|
||||||
caServer = "http://{{.BoulderHost}}:4000/directory"
|
caServer = "http://{{.BoulderHost}}:4000/directory"
|
||||||
[acme.httpchallenge]
|
[acme.httpchallenge]
|
||||||
entrypoint="http"
|
entrypoint="http"
|
||||||
|
|
||||||
[file]
|
[file]
|
||||||
|
|
||||||
|
|
|
@ -20,8 +20,8 @@ entryPoint = "https"
|
||||||
onDemand = {{.OnDemand}}
|
onDemand = {{.OnDemand}}
|
||||||
OnHostRule = {{.OnHostRule}}
|
OnHostRule = {{.OnHostRule}}
|
||||||
caServer = "http://{{.BoulderHost}}:4000/directory"
|
caServer = "http://{{.BoulderHost}}:4000/directory"
|
||||||
[acme.httpchallenge]
|
[acme.httpchallenge]
|
||||||
entrypoint="http"
|
entrypoint="http"
|
||||||
|
|
||||||
[file]
|
[file]
|
||||||
|
|
||||||
|
|
|
@ -11,6 +11,6 @@
|
||||||
|
|
||||||
[[tls]]
|
[[tls]]
|
||||||
entryPoints = ["https"]
|
entryPoints = ["https"]
|
||||||
[tls.certificate]
|
[tls.certificate]
|
||||||
certFile = "fixtures/acme/ssl/wildcard.crt"
|
certFile = "fixtures/acme/ssl/wildcard.crt"
|
||||||
keyFile = "fixtures/acme/ssl/wildcard.key"
|
keyFile = "fixtures/acme/ssl/wildcard.key"
|
|
@ -14,7 +14,7 @@
|
||||||
# Optional
|
# Optional
|
||||||
# Default: "ERROR"
|
# Default: "ERROR"
|
||||||
#
|
#
|
||||||
# logLevel = "ERROR"
|
# logLevel = "DEBUG"
|
||||||
|
|
||||||
# Entrypoints to be used by frontends that do not specify any entrypoint.
|
# Entrypoints to be used by frontends that do not specify any entrypoint.
|
||||||
# Each frontend can specify its own entrypoints.
|
# Each frontend can specify its own entrypoints.
|
||||||
|
@ -24,6 +24,10 @@
|
||||||
#
|
#
|
||||||
# defaultEntryPoints = ["http", "https"]
|
# defaultEntryPoints = ["http", "https"]
|
||||||
|
|
||||||
|
################################################################
|
||||||
|
# Entrypoints configuration
|
||||||
|
################################################################
|
||||||
|
|
||||||
# Entrypoints definition
|
# Entrypoints definition
|
||||||
#
|
#
|
||||||
# Optional
|
# Optional
|
||||||
|
@ -32,6 +36,10 @@
|
||||||
[entryPoints.http]
|
[entryPoints.http]
|
||||||
address = ":80"
|
address = ":80"
|
||||||
|
|
||||||
|
################################################################
|
||||||
|
# Traefik logs configuration
|
||||||
|
################################################################
|
||||||
|
|
||||||
# Traefik logs
|
# Traefik logs
|
||||||
# Enabled by default and log to stdout
|
# Enabled by default and log to stdout
|
||||||
#
|
#
|
||||||
|
@ -54,6 +62,10 @@
|
||||||
#
|
#
|
||||||
# format = "common"
|
# format = "common"
|
||||||
|
|
||||||
|
################################################################
|
||||||
|
# Access logs configuration
|
||||||
|
################################################################
|
||||||
|
|
||||||
# Enable access logs
|
# Enable access logs
|
||||||
# By default it will write to stdout and produce logs in the textual
|
# By default it will write to stdout and produce logs in the textual
|
||||||
# Common Log Format (CLF), extended with additional fields.
|
# Common Log Format (CLF), extended with additional fields.
|
||||||
|
@ -78,17 +90,39 @@
|
||||||
# format = "common"
|
# format = "common"
|
||||||
|
|
||||||
################################################################
|
################################################################
|
||||||
# Web configuration backend
|
# API and dashboard configuration
|
||||||
################################################################
|
################################################################
|
||||||
|
|
||||||
# Enable web configuration backend
|
# Enable API and dashboard
|
||||||
[web]
|
[api]
|
||||||
|
|
||||||
# Web administration port
|
# Name of the related entry point
|
||||||
#
|
#
|
||||||
# Required
|
# Optional
|
||||||
#
|
# Default: "traefik"
|
||||||
address = ":8080"
|
#
|
||||||
|
# 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"
|
||||||
|
|
||||||
################################################################
|
################################################################
|
||||||
# Docker configuration backend
|
# Docker configuration backend
|
||||||
|
|
Loading…
Reference in a new issue