docs: add backend deployment guide
This commit is contained in:
@@ -29,7 +29,7 @@ pnpm run start:prod
|
||||
|
||||
启动前至少需要在 `.env` 中设置随机的 `JWT_SECRET`、`ADMIN_TOKEN_SECRET` 和 `ZULIP_API_KEY_ENCRYPTION_KEY`。生产环境请从 `.env.production.example` 开始配置,不要直接使用示例值。
|
||||
|
||||
API 默认监听 `3000` 端口,Swagger 地址为 `/api-docs`。
|
||||
REST API 默认监听 `3000` 端口,原生 WebSocket 默认监听 `3001` 端口并使用 `/game` 路径,Swagger 地址为 `/api-docs`。生产环境的反向代理需要分别转发这两个端口。
|
||||
|
||||
## 管理端
|
||||
|
||||
|
||||
Reference in New Issue
Block a user