Websockets support in README

This commit is contained in:
saidimu apale 2014-10-01 13:46:37 -04:00
parent 752b78ce05
commit 1162e14e79

View file

@ -14,6 +14,12 @@ Then start any containers you want proxied with an env var VIRTUAL_HOST=subdomai
Provided your DNS is setup to forward foo.bar.com to the a host running nginx-proxy, the request will be routed to a container with the VIRTUAL_HOST env var set.
### Websockets support
To proxy a websockets container, add an env var WEBSOCKETS=1
$ docker run -e VIRTUAL_HOST=foo.bar.com -e WEBSOCKETS=1 ...
### Multiple Ports
If your container exposes multiple ports, nginx-proxy will default to the service running on port 80. If you need to specify a different port, you can set a VIRTUAL_PORT env var to select a different one. If your container only exposes one port and it has a VIRTUAL_HOST env var set, that port will be selected.