From 5e0ace81bf9fd8ffb09aec8119ddb4a83b5b13a0 Mon Sep 17 00:00:00 2001 From: Viktor Date: Mon, 5 Dec 2016 21:11:45 -0800 Subject: [PATCH] Multi-domain (fixes #69) --- README.md | 4 ++-- articles/swarm-mode-listener.md | 8 ++++++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 8c692eae..ded6dd83 100644 --- a/README.md +++ b/README.md @@ -80,9 +80,9 @@ The following query arguments can be used to send as a *reconfigure* request to |distribute |Whether to distribute a request to all the instances of the proxy. Used only in the *swarm* mode.|No|false|true| |pathType |The ACL derivative. Defaults to *path_beg*. See [HAProxy path](https://cbonte.github.io/haproxy-dconv/configuration-1.5.html#7.3.6-path) for more info.|No||path_beg| |port |The internal port of a service that should be reconfigured. The port is used only in the *swarm* mode|Only in *swarm* mode|||8080| -|serviceDomain|The domain of the service. If specified, the proxy will allow access only to requests coming to that domain. Multiple values should be separated by a comma (`,`).|No||ecme.com| +|serviceDomain|The domain of the service. If specified, the proxy will allow access only to requests coming to that domain. Multiple domains should be separated with comma (`,`).|No||ecme.com| |serviceName |The name of the service. It must match the name stored in Consul. |Yes | |go-demo | -|servicePath |The URL path of the service. Multiple values should be separated by a comma (`,`).|Yes (unless consulTemplatePath is present)||/api/v1/books| +|servicePath |The URL path of the service. Multiple values should be separated with comma (`,`).|Yes (unless consulTemplatePath is present)||/api/v1/books| |skipCheck |Whether to skip adding proxy checks. This option is used only in the *default* mode.|No |false |true | |users |A comma-separated list of credentials(:) for HTTP basic auth, which applies only to the service that will be reconfigured.|No||user1:pass1,user2:pass2| diff --git a/articles/swarm-mode-listener.md b/articles/swarm-mode-listener.md index 9b6c56a8..7b77f217 100644 --- a/articles/swarm-mode-listener.md +++ b/articles/swarm-mode-listener.md @@ -189,6 +189,14 @@ Optionally, *serviceDomain* can be used as well. If specified, the proxy will al ... ``` +Multiple domains should be separated with comma (`,`). + +```bash +... + --label com.df.serviceDomain=my-domain.com,my-other-domain.com \ +... +``` + ### Removing a Service From the Proxy Since `Swarm Listener` is monitoring docker services, if a service is removed, related entries in the proxy configuration will be removed as well.