feat(server): add extra CORS origins url configuration

This commit is contained in:
MingxuanGame
2025-08-12 05:33:24 +00:00
parent e0a386934e
commit 6474a3d11e
4 changed files with 5 additions and 1 deletions

View File

@@ -69,6 +69,7 @@ docker-compose -f docker-compose-osurx.yml up -d
| `PORT` | 服务器监听端口 | `8000` |
| `DEBUG` | 调试模式 | `false` |
| `SERVER_URL` | 服务器 URL | `http://localhost:8000` |
| `CORS_URLS` | 额外的 CORS 允许的域名列表 (JSON 格式) | `[]` |
| `PRIVATE_API_SECRET` | 私有 API 密钥,用于前后端 API 调用 | `your_private_api_secret_here` |
### OAuth 设置