Skip to content

Commit 75abc86

Browse files
committed
Path rewrite [ci skip]
1 parent 6033cd2 commit 75abc86

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

articles/swarm-mode-listener.md

-19
Original file line numberDiff line numberDiff line change
@@ -314,25 +314,6 @@ One of the important things to note is that, with a system like this, everything
314314

315315
A similar logic is used for the destination services. The proxy does not need to do load balancing. Docker networking does that for us. The only thing it needs is the name of the service and that both belong to the same network. As a result, there is no need to reconfigure the proxy every time a new release is made or when a service is scaled.
316316

317-
## Rewriting Paths
318-
319-
```bash
320-
docker service create --name go-demo \
321-
-e DB=go-demo-db \
322-
--network go-demo \
323-
--network proxy \
324-
--label com.df.notify=true \
325-
--label com.df.distribute=true \
326-
--label com.df.servicePath=/demo \
327-
--label com.df.port=8080 \
328-
--label com.df.reqRepSearch='^([^\ ]*)\ /something-else/(.*)' \
329-
--label com.df.reqRepReplace='^([^\ ]*)\ /demo/(.*)' \
330-
--replicas 3 \
331-
vfarcic/go-demo
332-
333-
334-
```
335-
336317
## Basic Authentication
337318

338319
*Docker Flow: Proxy* can provide basic authentication that can be applied on two levels. We can configure the proxy to protect all or only a selected service.

0 commit comments

Comments
 (0)