Skip to content

Commit 5e0ace8

Browse files
committed
Multi-domain (fixes #69)
1 parent 305bce9 commit 5e0ace8

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,9 @@ The following query arguments can be used to send as a *reconfigure* request to
8080
|distribute |Whether to distribute a request to all the instances of the proxy. Used only in the *swarm* mode.|No|false|true|
8181
|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|
8282
|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|
83-
|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|
83+
|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|
8484
|serviceName |The name of the service. It must match the name stored in Consul. |Yes | |go-demo |
85-
|servicePath |The URL path of the service. Multiple values should be separated by a comma (`,`).|Yes (unless consulTemplatePath is present)||/api/v1/books|
85+
|servicePath |The URL path of the service. Multiple values should be separated with comma (`,`).|Yes (unless consulTemplatePath is present)||/api/v1/books|
8686
|skipCheck |Whether to skip adding proxy checks. This option is used only in the *default* mode.|No |false |true |
8787
|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|
8888

articles/swarm-mode-listener.md

+8
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,14 @@ Optionally, *serviceDomain* can be used as well. If specified, the proxy will al
189189
...
190190
```
191191

192+
Multiple domains should be separated with comma (`,`).
193+
194+
```bash
195+
...
196+
--label com.df.serviceDomain=my-domain.com,my-other-domain.com \
197+
...
198+
```
199+
192200
### Removing a Service From the Proxy
193201

194202
Since `Swarm Listener` is monitoring docker services, if a service is removed, related entries in the proxy configuration will be removed as well.

0 commit comments

Comments
 (0)