Skip to content

Commit 58c747a

Browse files
committed
Add auto-proxy to readme
1 parent cc9e8b0 commit 58c747a

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,14 @@ server {
4545
include /config/nginx/ondemand.conf;
4646
...
4747
```
48+
Or set the following label if using `swag-auto-proxy`:
49+
```yaml
50+
somecontainer:
51+
container_name: somecontainer
52+
...
53+
labels:
54+
- swag_server_custom_directive=include /config/nginx/ondemand.conf;
55+
```
4856
### Labels:
4957
- `swag_ondemand=enable` - required for on-demand.
5058
- `swag_ondemand_urls=https://wake.domain.com,https://app.domain.com/up` - *optional* - overrides the monitored URLs for starting the container on-demand. Defaults to `https://somecontainer.,http://somecontainer.`.

0 commit comments

Comments
 (0)