casdoor对接企业微信,casdoor端口地址改为8870

This commit is contained in:
sophie committed 2026-05-09 14:02:18 +08:00
1 parent 7eed474125
commit c21a831796
14 files changed
+375 -28

No files matched your search

+14 -2
View File
@@ -169,9 +169,18 @@ docker compose up -d --build
| ------- | ------------------------------ | ----------------------- | ----------------------- | ---- |
| 本地 | `http://localhost:8881` | `http://localhost:5002` | 密码/企业微信(按配置) | |
| 测试 | `待定` | `待定` | 密码/企业微信(按配置) | |
| 生产 | `http://192.168.100.230:8881/` | | 密码/企业微信(按配置) | |
| 生产 | `http://192.168.100.230:8881/` ;域名 `http://ai.well-trust.com:8881/` | | Casdoor 密码 / 企业微信(经 Casdoor,按配置) | |
| Jenkins | `http://8.152.207.171:10240/` | | 密码 | |
| Casdoor | `http://192.168.100.230:8088` | | 密码 | |
| Casdoor | `http://192.168.100.230:8870` | | IdP(密码 / OAuth / 企业微信 Provider) | |
#### 6.2.1 Casdoor OAuth 回调(Redirect URLs)
须同时登记(用户用哪种浏览器地址访问前端,就要登记哪条):
- `http://192.168.100.230:8881/casdoor-callback`
- `http://ai.well-trust.com:8881/casdoor-callback`
后端环境变量示例见仓库根目录 `.env.prod` 与 `backend/.env.production.example`(`CASDOOR_BASE_URL`、`AUTH_JWT_*`、`CASDOOR_REDIRECT_URI` 等)。
### 6.3 默认测试账号(仅本地初始化脚本场景)
@@ -220,6 +229,9 @@ docker compose up -d --build
| `INTEGRATION_API_BASE` | 集成 API 地址 | `https://...` |
| `INTEGRATION_API_KEY` | 集成 API 密钥 | `<待补>` |
| `WECOM_*` | 企业微信配置 | 见第 6.4 节 |
| `CASDOOR_BASE_URL` | Casdoor 地址 | `http://192.168.100.230:8870` |
| `CASDOOR_REDIRECT_URI` | OAuth 兜底回调 | 见 §6.2.1;须与 Casdoor 登记一致 |
| `AUTH_JWT_ISSUER` / `AUTH_JWT_JWKS_URL` | 校验 Casdoor JWT | 与 Casdoor 签发一致 |
## 8. Codex 配置方案