Enable passing in local IP, refactored IP detection (#48)

* Enable passing in local IP, refactored IP detection

* update docker server instructions
This commit is contained in:
David Zhao
2021-07-11 08:42:11 -07:00
committed by GitHub
parent 4c54234954
commit a80e8cf69f
13 changed files with 199 additions and 129 deletions
+10 -3
View File
@@ -91,16 +91,23 @@ APIwLeah7g4fuLYDYAJeaKsSE: 8nTlwISkb-63DPP7OH4e.nw.J44JjicvZDiz8J59EoQ+
In development mode, LiveKit has no external dependencies. With the key file ready, you can start LiveKit with
```shell
./bin/livekit-server --key-file <path/to/keyfile> --dev
LIVEKIT_KEYS="<key>: <secret>" ./bin/livekit-server --dev
```
or
```shell
docker run --rm -p 7880:7880 -p 7881:7881 -e LIVEKIT_KEYS="<key>: <secret>" livekit/livekit-server --dev
docker run --rm \
-p 7880:7880 \
-p 7881:7881 \
-p 7882:7882/udp \
-e LIVEKIT_KEYS="<key>: <secret>" \
livekit/livekit-server \
--dev \
--node-ip=<machine-ip>
```
the `--dev` flag turns on log verbosity to make it easier for local debugging/development
The `--dev` flag turns on log verbosity to make it easier for local debugging/development
### Sample client