tag(功能):完善登录功能
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
# Screen Share
|
||||
|
||||
浏览器直接连接 LiveKit;Ktor 负责应用登录、邀请码、房间权限和短期 LiveKit Token。
|
||||
|
||||
## 本地启动
|
||||
|
||||
1. 启动基础服务:
|
||||
|
||||
~~~bash
|
||||
sudo docker compose --env-file .env up -d postgres livekit
|
||||
~~~
|
||||
|
||||
2. 用 IntelliJ 启动 API,并在 Program arguments 中填入:
|
||||
|
||||
~~~text
|
||||
-config=src/main/resources/application.local.yaml
|
||||
~~~
|
||||
|
||||
首次启动会执行 Flyway 迁移,并创建本地 bootstrap 管理员。
|
||||
|
||||
3. 启动前端:
|
||||
|
||||
~~~bash
|
||||
cd apps/ScreenShareWeb
|
||||
npm run dev
|
||||
~~~
|
||||
|
||||
访问 http://localhost:5173,使用本地配置中的 bootstrap 管理员登录。管理员可生成普通用户或管理员邀请码;邀请码仅显示一次。
|
||||
|
||||
## 安全说明
|
||||
|
||||
.env 与 application.local.yaml 已被 Git 忽略。生产环境必须使用随机的数据库密码、JWT Secret、LiveKit Secret 和 bootstrap 管理员密码。
|
||||
Reference in New Issue
Block a user