Local develop setup with docker (#1103)

* Add local live kit backend run setup
This commit is contained in:
Enrico Schwendig
2023-06-12 15:52:27 +02:00
committed by GitHub
parent 4dcd1e176f
commit 0192ed70ea
10 changed files with 341 additions and 1 deletions

View File

@@ -74,6 +74,37 @@ You're now ready to launch the development server:
yarn dev
```
### Local Backend
#### JWT keys
Add in you `.env` in root dir with:
```yaml
# Develop backend settings:
LIVEKIT_KEY="devkey"
LIVEKIT_SECRET="secret"
```
#### Add SFU parameter in your local config `./public/config.yml`
```yaml
"livekit": {
"server_url": "ws://localhost:7880",
"jwt_service_url": "http:/localhost:8881"
},
```
#### Run Backend
```
yarn backend
```
##### Services
JWT Service: http://localhost:8881/token?name=Name&identity=1234&roomName=room
## Configuration
There are currently two different config files. `.env` holds variables that are used at build time, while `public/config.json` holds variables that are used at runtime. Documentation and default values for `public/config.json` can be found in [ConfigOptions.ts](src/config/ConfigOptions.ts).