Skip to content

Commit

Permalink
Enhance Traefik TOML sample.
Browse files Browse the repository at this point in the history
  • Loading branch information
ldez authored and traefiker committed Mar 12, 2018
1 parent 8fbac2e commit fc81d92
Show file tree
Hide file tree
Showing 11 changed files with 71 additions and 32 deletions.
10 changes: 7 additions & 3 deletions examples/accessLog/traefik.ab.toml
Expand Up @@ -5,11 +5,15 @@ traefikLogsFile = "log/traefik.log"
accessLogsFile = "log/access.log"
logLevel = "DEBUG"

[entryPoints]
[entryPoints.api]
address = ":7888"

################################################################
# Web configuration backend
# API configuration
################################################################
[web]
address = ":7888"
[api]
entryPoint = "api"

################################################################
# File configuration backend
Expand Down
10 changes: 7 additions & 3 deletions examples/accessLog/traefik.example.toml
Expand Up @@ -5,11 +5,15 @@ traefikLogsFile = "log/traefik.log"
accessLogsFile = "log/access.log"
logLevel = "DEBUG"

[entryPoints]
[entryPoints.api]
address = ":7888"

################################################################
# Web configuration backend
# API configuration
################################################################
[web]
address = ":7888"
[api]
entryPoint = "api"

################################################################
# File configuration backend
Expand Down
9 changes: 3 additions & 6 deletions examples/acme/acme.toml
Expand Up @@ -11,20 +11,17 @@ defaultEntryPoints = ["http", "https"]
address = ":443"
[entryPoints.https.tls]


[acme]
email = "test@traefik.io"
storage = "/etc/traefik/conf/acme.json"
entryPoint = "https"
onDemand = false
OnHostRule = true
caServer = "http://traefik.localhost.com:4000/directory"
[acme.httpChallenge]
entryPoint="http"

[acme.httpChallenge]
entryPoint="http"

[web]
address = ":8080"
[api]

[docker]
endpoint = "unix:///var/run/docker.sock"
Expand Down
2 changes: 1 addition & 1 deletion examples/compose-rancher.yml
@@ -1,6 +1,6 @@
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:
- "80:80"
- "443:443"
Expand Down
2 changes: 1 addition & 1 deletion examples/compose-traefik.yml
@@ -1,6 +1,6 @@
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:
- "80:80"
- "8080:8080"
Expand Down
2 changes: 1 addition & 1 deletion examples/k8s/traefik-deployment.yaml
Expand Up @@ -29,7 +29,7 @@ spec:
- image: traefik
name: traefik-ingress-lb
args:
- --web
- --api
- --kubernetes
---
kind: Service
Expand Down
2 changes: 1 addition & 1 deletion examples/k8s/traefik-ds.yaml
Expand Up @@ -35,7 +35,7 @@ spec:
privileged: true
args:
- -d
- --web
- --api
- --kubernetes
---
kind: Service
Expand Down
4 changes: 2 additions & 2 deletions integration/fixtures/acme/acme_http01.toml
Expand Up @@ -17,8 +17,8 @@ entryPoint = "https"
onDemand = {{.OnDemand}}
OnHostRule = {{.OnHostRule}}
caServer = "http://{{.BoulderHost}}:4000/directory"
[acme.httpchallenge]
entrypoint="http"
[acme.httpchallenge]
entrypoint="http"

[file]

Expand Down
4 changes: 2 additions & 2 deletions integration/fixtures/acme/acme_http01_web.toml
Expand Up @@ -20,8 +20,8 @@ entryPoint = "https"
onDemand = {{.OnDemand}}
OnHostRule = {{.OnHostRule}}
caServer = "http://{{.BoulderHost}}:4000/directory"
[acme.httpchallenge]
entrypoint="http"
[acme.httpchallenge]
entrypoint="http"

[file]

Expand Down
6 changes: 3 additions & 3 deletions integration/fixtures/acme/certificates.toml
Expand Up @@ -11,6 +11,6 @@

[[tls]]
entryPoints = ["https"]
[tls.certificate]
certFile = "fixtures/acme/ssl/wildcard.crt"
keyFile = "fixtures/acme/ssl/wildcard.key"
[tls.certificate]
certFile = "fixtures/acme/ssl/wildcard.crt"
keyFile = "fixtures/acme/ssl/wildcard.key"
52 changes: 43 additions & 9 deletions traefik.sample.toml
Expand Up @@ -14,7 +14,7 @@
# Optional
# Default: "ERROR"
#
# logLevel = "ERROR"
# logLevel = "DEBUG"

# Entrypoints to be used by frontends that do not specify any entrypoint.
# Each frontend can specify its own entrypoints.
Expand All @@ -24,6 +24,10 @@
#
# defaultEntryPoints = ["http", "https"]

################################################################
# Entrypoints configuration
################################################################

# Entrypoints definition
#
# Optional
Expand All @@ -32,6 +36,10 @@
[entryPoints.http]
address = ":80"

################################################################
# Traefik logs configuration
################################################################

# Traefik logs
# Enabled by default and log to stdout
#
Expand All @@ -54,6 +62,10 @@
#
# format = "common"

################################################################
# 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.
Expand All @@ -78,17 +90,39 @@
# format = "common"

################################################################
# Web configuration backend
# API and dashboard configuration
################################################################

# Enable web configuration backend
[web]
# Enable API and dashboard
[api]

# Web administration port
#
# Required
#
address = ":8080"
# 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"

################################################################
# Docker configuration backend
Expand Down

0 comments on commit fc81d92

Please sign in to comment.