Add a new protocol
Co-authored-by: Gérald Croës <gerald@containo.us>
This commit is contained in:
parent
0ca2149408
commit
4a68d29ce2
231 changed files with 6895 additions and 4395 deletions
|
@ -5,8 +5,8 @@ traefikLogsFile = "log/traefik.log"
|
|||
accessLogsFile = "log/access.log"
|
||||
logLevel = "DEBUG"
|
||||
|
||||
[entryPoints]
|
||||
[entryPoints.api]
|
||||
[entrypoints]
|
||||
[entrypoints.api]
|
||||
address = ":7888"
|
||||
|
||||
################################################################
|
||||
|
|
|
@ -5,8 +5,8 @@ traefikLogsFile = "log/traefik.log"
|
|||
accessLogsFile = "log/access.log"
|
||||
logLevel = "DEBUG"
|
||||
|
||||
[entryPoints]
|
||||
[entryPoints.api]
|
||||
[entrypoints]
|
||||
[entrypoints.api]
|
||||
address = ":7888"
|
||||
|
||||
################################################################
|
||||
|
|
|
@ -1,15 +1,13 @@
|
|||
logLevel = "DEBUG"
|
||||
|
||||
defaultEntryPoints = ["http", "https"]
|
||||
|
||||
[entryPoints]
|
||||
[entryPoints.http]
|
||||
[entrypoints]
|
||||
[entrypoints.web]
|
||||
address = ":80"
|
||||
[entryPoints.http.redirect]
|
||||
[entrypoints.web.redirect]
|
||||
entryPoint = "https"
|
||||
[entryPoints.https]
|
||||
[entrypoints.web-secure]
|
||||
address = ":443"
|
||||
[entryPoints.https.tls]
|
||||
[entrypoints.web-secure.tls]
|
||||
|
||||
[acme]
|
||||
email = "test@traefik.io"
|
||||
|
|
|
@ -1,13 +1,11 @@
|
|||
logLevel = "DEBUG"
|
||||
|
||||
defaultEntryPoints = ["http", "https"]
|
||||
|
||||
[entryPoints]
|
||||
[entryPoints.http]
|
||||
[entrypoints]
|
||||
[entrypoints.web]
|
||||
address = ":80"
|
||||
[entryPoints.https]
|
||||
[entrypoints.web-secure]
|
||||
address = ":443"
|
||||
[entryPoints.https.tls]
|
||||
[entrypoints.web-secure.tls]
|
||||
|
||||
[acme]
|
||||
email = "test@traefik.io"
|
||||
|
|
|
@ -43,7 +43,7 @@ Edit your `docker-compose.yml` file and add the following at the end of your fil
|
|||
whoami:
|
||||
image: containous/whoami # A container that exposes an API to show its IP address
|
||||
labels:
|
||||
- "traefik.router.rule=Host:whoami.docker.localhost"
|
||||
- "traefik.http.routers.whoami.rule=Host:whoami.docker.localhost"
|
||||
```
|
||||
|
||||
The above defines `whoami`: a simple web service that outputs information about the machine it is deployed on (its IP address, host, and so on).
|
||||
|
|
|
@ -15,4 +15,4 @@ services:
|
|||
whoami:
|
||||
image: containous/whoami # A container that exposes an API to show its IP address
|
||||
labels:
|
||||
- "traefik.router.rule=Host:whoami.docker.localhost"
|
||||
- "traefik.http.routers.whoami.rule=Host:whoami.docker.localhost"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue