forked from msgbyte/tailchat
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: add livekit deployment document
- Loading branch information
1 parent
f29352d
commit 559867d
Showing
23 changed files
with
216 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"label": "Video Conference", | ||
"position": 60 | ||
"position": 35 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
--- | ||
sidebar_position: 20 | ||
title: Livekit Plugin Deployment Guide | ||
--- | ||
|
||
`Livekit` is an open source video conferencing solution based on the `Apache-2.0` open source protocol, allowing self-host, supporting video conferencing, live streaming, recording and other scenarios | ||
|
||
You can use his cloud service or self-host. Below I will introduce how to integrate `Livekit` into `Tailchat`: | ||
|
||
## Cloud Services | ||
|
||
First enter the Livekit cloud platform: [https://cloud.livekit.io/](https://cloud.livekit.io/), in the first time you enter, you need to create a project: | ||
|
||
It will ask some questions, just answer them according to the situation. | ||
|
||
![](/img/advanced-usage/livekit/1.png) | ||
|
||
After completion, we will enter the console main dashboard: | ||
|
||
![](/img/advanced-usage/livekit/2.png) | ||
|
||
### Get the required environment variables | ||
|
||
For the plugin to work, we need the following environment variables: | ||
|
||
- `LIVEKIT_URL` | ||
- `LIVEKIT_API_KEY` | ||
- `LIVEKIT_API_SECRET` | ||
|
||
Among them, `LIVEKIT_URL` can be obtained directly from the console, in the form of `wss://********.livekit.cloud` | ||
|
||
In the `Settings` menu on the left, we need to create a pair of secret keys by ourselves | ||
|
||
![](/img/advanced-usage/livekit/3.png) | ||
|
||
![](/img/advanced-usage/livekit/4.png) | ||
|
||
![](/img/advanced-usage/livekit/5.png) | ||
|
||
Here we can get `LIVEKIT_API_KEY` and `LIVEKIT_API_SECRET`. | ||
|
||
Record and fill in the environment variables and start `Tailchat`. | ||
|
||
### Start the webhook | ||
|
||
![](/img/advanced-usage/livekit/6.png) | ||
|
||
If you need the above-mentioned channel online prompts to be updated immediately, you need to start a `webhook-receiver` separately to accept pushes from `livekit` and forward the received events to `Tailchat`, so that `Tailchat` can update all groups Display of group membership. | ||
|
||
The official `docker-compose` configuration has been prepared for you with one click, just like `admin`: | ||
|
||
```bash | ||
wget https://raw.githubusercontent.com/msgbyte/tailchat/master/docker/livekit.yml | ||
docker compose -f docker-compose.yml -f livekit.yml up -d | ||
``` | ||
|
||
At this point you can see a `tailchat-livekit-webhook-receiver` service in the docker running container. | ||
|
||
Then we switch to the `livekit` console and add our address in the `webhook`. | ||
|
||
![](/img/advanced-usage/livekit/7.png) | ||
|
||
Generally `https://<your tailchat url>/livekit/webhook`, remember to choose the same key pair as the service | ||
|
||
![](/img/advanced-usage/livekit/8.png) | ||
|
||
> PS: There may be some delays in cloud applications. | ||
## Self-host | ||
|
||
See the official documentation for self-host: [https://docs.livekit.io/oss/deployment/](https://docs.livekit.io/oss/deployment/) | ||
|
||
In addition to the different deployment methods and configuration first, others are the same as using cloud services |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
4 changes: 0 additions & 4 deletions
4
website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/meeting/_category_.json
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 0 additions & 9 deletions
9
website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/meeting/design.md
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
73 changes: 73 additions & 0 deletions
73
website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/meeting/livekit.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
--- | ||
sidebar_position: 20 | ||
title: Livekit 插件部署指南 | ||
--- | ||
|
||
`Livekit` 是一款基于 `Apache-2.0` 开源协议的,允许自部署的开源视频会议解决方案,支持视频会议、视频直播、录制等场景 | ||
|
||
你可以使用他的云端服务或者自部署。以下我会介绍怎么将 `Livekit` 集成到 `Tailchat` 中: | ||
|
||
## 云端服务 | ||
|
||
首先进入Livekit云平台: [https://cloud.livekit.io/](https://cloud.livekit.io/), 首次进入要创建一下项目: | ||
|
||
此时会问一些问题,按照情况随便回答一下就行 | ||
|
||
![](/img/advanced-usage/livekit/1.png) | ||
|
||
完成后我们会进入控制台主界面: | ||
|
||
![](/img/advanced-usage/livekit/2.png) | ||
|
||
### 获取需要的环境变量 | ||
|
||
为使插件工作,我们需要以下环境变量: | ||
|
||
- `LIVEKIT_URL` | ||
- `LIVEKIT_API_KEY` | ||
- `LIVEKIT_API_SECRET` | ||
|
||
其中 `LIVEKIT_URL` 我们可以直接从控制台上获取,形如 `wss://********.livekit.cloud` | ||
|
||
在左边 `Settings` 菜单中,我们需要自行创建一对秘钥 | ||
|
||
![](/img/advanced-usage/livekit/3.png) | ||
|
||
![](/img/advanced-usage/livekit/4.png) | ||
|
||
![](/img/advanced-usage/livekit/5.png) | ||
|
||
在这里我们可以获取到 `LIVEKIT_API_KEY` 和 `LIVEKIT_API_SECRET`. | ||
|
||
记录下来填入环境变量后启动 `Tailchat` 即可. | ||
|
||
### 启动 webhook | ||
|
||
![](/img/advanced-usage/livekit/6.png) | ||
|
||
如果你需要上述的频道在线提示能够即时更新,则需要单独启动一个 `webhook-receiver` 来接受来自 `livekit` 的推送并将接收到的事件转发给 `Tailchat`,让 `Tailchat` 来更新所有群组成员的显示。 | ||
|
||
官方已为您准备好了一键启动的`docker-compose`配置, 就像 `admin` 一样: | ||
|
||
```bash | ||
wget https://raw.githubusercontent.com/msgbyte/tailchat/master/docker/livekit.yml | ||
docker compose -f docker-compose.yml -f livekit.yml up -d | ||
``` | ||
|
||
此时你可以在docker运行的容器中看到一个 `tailchat-livekit-webhook-receiver` 服务. | ||
|
||
然后我们切换到 `livekit` 控制台,在 `webhook` 中添加我们的地址。 | ||
|
||
![](/img/advanced-usage/livekit/7.png) | ||
|
||
一般为 `https://<your tailchat url>/livekit/webhook`, 记得选择与服务一致的密钥对 | ||
|
||
![](/img/advanced-usage/livekit/8.png) | ||
|
||
> PS: 在云端应用可能会有一些延时。 | ||
## 自部署 | ||
|
||
自部署可见官方文档: [https://docs.livekit.io/oss/deployment/](https://docs.livekit.io/oss/deployment/) | ||
|
||
除了部署方式不一样与配置为先,其他的与使用云端服务一样 |
6 changes: 0 additions & 6 deletions
6
website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/meeting/plugin.md
This file was deleted.
Oops, something went wrong.
6 changes: 0 additions & 6 deletions
6
website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/meeting/sdk.md
This file was deleted.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.