Skip to content

Commit

Permalink
Multi-domain (fixes #69)
Browse files Browse the repository at this point in the history
  • Loading branch information
vfarcic committed Dec 6, 2016
1 parent 305bce9 commit 5e0ace8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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(<user>:<pass>) for HTTP basic auth, which applies only to the service that will be reconfigured.|No||user1:pass1,user2:pass2|

Expand Down
8 changes: 8 additions & 0 deletions articles/swarm-mode-listener.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 5e0ace8

Please sign in to comment.