Add getPrefixes to get string array of PathPrefixes
Marathon label traefik.prefixes can be used to specify what prefixes to use. New example marathon-prefix.tmpl to take advantage of this new mechanism.
This commit is contained in:
parent
cae02b02ac
commit
bc94ace7d3
3 changed files with 36 additions and 0 deletions
|
@ -413,6 +413,7 @@ Labels can be used on containers to override default behaviour:
|
|||
* ```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="providerTemplates/marathon-prefix.tmpl" with this option
|
||||
|
||||
## <a id="consul"></a> Consul backend
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue