Document dc.hyf2.cc reverse proxy for port 5155.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -12,9 +12,9 @@
|
||||
|
||||
## 访问(测试机)
|
||||
|
||||
- 地址:`http://47.236.184.99:5155`
|
||||
- 反代:[`https://dc.hyf2.cc`](https://dc.hyf2.cc) → 本机 `5155`(PM2: `eth-hedge-api`)
|
||||
- 默认登录:见服务器 `/opt/eth_hedge_sim/.env` 的 `AUTH_USERNAME` / `AUTH_PASSWORD`(示例 `admin` / `admin123`)
|
||||
- 登录页可填写 **API 地址**(同机部署填 `http://47.236.184.99:5155` 或留当前域名)
|
||||
- 登录页 **API 地址** 默认同域即可(填 `https://dc.hyf2.cc` 亦可)
|
||||
|
||||
## 一键部署 / 更新(禁止 scp 传代码)
|
||||
|
||||
|
||||
@@ -47,4 +47,4 @@ fi
|
||||
pm2 startOrReload "$ROOT/deploy/ecosystem.config.cjs" --update-env
|
||||
pm2 save
|
||||
|
||||
echo "[eth_hedge_sim] done. health: http://127.0.0.1:5155/health"
|
||||
echo "[eth_hedge_sim] done. health: http://127.0.0.1:5155/health public: https://dc.hyf2.cc/health"
|
||||
|
||||
@@ -11,7 +11,7 @@ export default function LoginPage() {
|
||||
const [loading, setLoading] = useState(false);
|
||||
|
||||
const hint = useMemo(
|
||||
() => "默认同域 API。跨机访问时填写如 http://47.236.184.99:5155",
|
||||
() => "默认同域 API。测试环境反代:https://dc.hyf2.cc",
|
||||
[],
|
||||
);
|
||||
|
||||
@@ -44,7 +44,7 @@ export default function LoginPage() {
|
||||
className="mono"
|
||||
value={apiBase}
|
||||
onChange={(e) => setApi(e.target.value)}
|
||||
placeholder="http://host:5155"
|
||||
placeholder="https://dc.hyf2.cc"
|
||||
autoComplete="url"
|
||||
/>
|
||||
</div>
|
||||
|
||||
@@ -16,7 +16,7 @@ export default function SettingsPage() {
|
||||
<div className="card" style={{ maxWidth: 560 }}>
|
||||
<h2 style={{ marginTop: 0 }}>系统设置</h2>
|
||||
<p style={{ color: "var(--muted)" }}>
|
||||
前端可单独指定后端 API;同机部署默认用当前域名端口 5155。
|
||||
前端可单独指定后端 API;测试环境反代为 https://dc.hyf2.cc(同源可留空当前域名)。
|
||||
</p>
|
||||
<form onSubmit={onSave}>
|
||||
<div className="field">
|
||||
|
||||
Reference in New Issue
Block a user