From 32bfecff83e23a1b5bedef80bad2aae274630462 Mon Sep 17 00:00:00 2001 From: emile Date: Fri, 23 Oct 2015 17:43:10 +0200 Subject: [PATCH] Docs on traefik.frontend. rule and value labels in Docker and Marathon. --- docs/index.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/docs/index.md b/docs/index.md index 793e85a20..f13ebe1d8 100644 --- a/docs/index.md +++ b/docs/index.md @@ -25,7 +25,7 @@ It supports several backends ([Docker :whale:](https://www.docker.com/), [Mesos/ Basically, Træfɪk is a http router, which sends traffic from frontends to http backends, following rules you have configured. -### Frontends +### Frontends Frontends can be defined using the following rules: @@ -409,9 +409,11 @@ Labels can be used on containers to override default behaviour: - `traefik.port=80`: register this port. Useful when the container exposes multiples ports. - `traefik.weight=10`: assign this weight to the container - `traefik.enable=false`: disable this container in Træfɪk -- `traefik.host=bar`: override the default routing from `{containerName}.{domain}` to `bar.{domain}` +- `traefik.frontend.rule=Host`: override the default frontend rule (Default: Host). See [frontends](#frontends). +- `traefik.frontend.value=test.example.com`: override the default frontend value (Default: `{containerName}.{domain}`) See [frontends](#frontends). * `traefik.domain=traefik.localhost`: override the default domain + ## Marathon backend Træfɪk can be configured to use Marathon as a backend configuration: @@ -464,12 +466,11 @@ domain = "marathon.localhost" Labels can be used on containers to override default behaviour: -- `traefik.backend=foo`: assign the application to `foo` backend - `traefik.port=80`: register this port. Useful when the application exposes multiples ports. - `traefik.weight=10`: assign this weight to the application - `traefik.enable=false`: disable this application in Træfɪk -- `traefik.host=bar`: override the default routing from `{appName}.{domain}` to `bar.{domain}` -- `traefik.prefixes=pf1,pf2`: use `PathPrefix(es)` instead of hostname for routing, use `filename="templates/marathon-prefix.tmpl"` with this option +- `traefik.frontend.rule=Host`: override the default frontend rule (Default: Host). See [frontends](#frontends). +- `traefik.frontend.value=test.example.com`: override the default frontend value (Default: `{appName}.{domain}`) See [frontends](#frontends). * `traefik.domain=traefik.localhost`: override the default domain ## Consul backend