chore: remove hardcoded production domain references
This commit is contained in:
@@ -4,8 +4,8 @@
|
||||
|
||||
## 项目情况(2026-02-24)
|
||||
|
||||
- 线上域名:`https://zc.workyai.cn`
|
||||
- Nginx 转发:`zc.workyai.cn -> 127.0.0.1:8787`
|
||||
- 线上域名:按部署自行配置
|
||||
- Nginx 转发:`<your-domain> -> 127.0.0.1:8787`
|
||||
- 运行服务:`xibao-web.service`
|
||||
- 代码目录:`/opt/xibao-web/app`
|
||||
- Python 环境:`/opt/xibao-web/venv`
|
||||
@@ -111,7 +111,7 @@ make lint
|
||||
# 2) 单元测试
|
||||
make test
|
||||
|
||||
# 3) 线上接口烟雾回归(默认 zc.workyai.cn)
|
||||
# 3) 接口烟雾回归(默认本机 127.0.0.1:8787)
|
||||
make smoke
|
||||
|
||||
# 一键全跑
|
||||
@@ -136,7 +136,7 @@ journalctl -u xibao-web.service -n 200 --no-pager
|
||||
### Nginx(线上)
|
||||
|
||||
```bash
|
||||
cat /etc/nginx/sites-available/zc.workyai.cn
|
||||
cat /etc/nginx/sites-available/<your-site>.conf
|
||||
nginx -t
|
||||
systemctl reload nginx
|
||||
```
|
||||
@@ -172,11 +172,11 @@ systemctl reload nginx
|
||||
### 快速启动
|
||||
|
||||
```bash
|
||||
cd /root/zc.workyai.cn/app
|
||||
cd /opt/xibao-web/app
|
||||
python3 wechat_bot_bridge.py \
|
||||
--wechat-base-url http://127.0.0.1:18238 \
|
||||
--wechat-session-file /root/WeChatPadPro_test_20260227/webui/.session.json \
|
||||
--xibao-base-url https://zc.workyai.cn
|
||||
--xibao-base-url http://127.0.0.1:8787
|
||||
```
|
||||
|
||||
可选参数:
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// DEPRECATED: this file is not served by zc.workyai.cn.
|
||||
// DEPRECATED: this file is not served by current web entry.
|
||||
// Active frontend entry is /opt/xibao-web/app/static/app.js.
|
||||
const state = {
|
||||
lastResult: null,
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
BASE_URL="${1:-https://zc.workyai.cn}"
|
||||
BASE_URL="${1:-http://127.0.0.1:8787}"
|
||||
|
||||
require_ok() {
|
||||
local json="$1"
|
||||
|
||||
@@ -19,7 +19,7 @@ from typing import Any, Iterable
|
||||
|
||||
|
||||
DEFAULT_WCPP_BASE_URL = os.environ.get("WCPP_BASE_URL", "http://127.0.0.1:18238")
|
||||
DEFAULT_XIBAO_BASE_URL = os.environ.get("XIBAO_BASE_URL", "https://zc.workyai.cn")
|
||||
DEFAULT_XIBAO_BASE_URL = os.environ.get("XIBAO_BASE_URL", "http://127.0.0.1:8787")
|
||||
DEFAULT_SESSION_FILE = Path(
|
||||
os.environ.get("WCPP_SESSION_FILE", "/root/WeChatPadPro_test_20260227/webui/.session.json")
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user