Document dc.hyf2.cc reverse proxy for port 5155.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-07-24 16:41:31 +08:00
parent 8c668ddff0
commit e24b4f297f
4 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -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` - 默认登录:见服务器 `/opt/eth_hedge_sim/.env``AUTH_USERNAME` / `AUTH_PASSWORD`(示例 `admin` / `admin123`
- 登录页可填写 **API 地址**同机部署`http://47.236.184.99:5155` 或留当前域名 - 登录页 **API 地址** 默认同域即可(填 `https://dc.hyf2.cc` 亦可
## 一键部署 / 更新(禁止 scp 传代码) ## 一键部署 / 更新(禁止 scp 传代码)
+1 -1
View File
@@ -47,4 +47,4 @@ fi
pm2 startOrReload "$ROOT/deploy/ecosystem.config.cjs" --update-env pm2 startOrReload "$ROOT/deploy/ecosystem.config.cjs" --update-env
pm2 save 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"
+2 -2
View File
@@ -11,7 +11,7 @@ export default function LoginPage() {
const [loading, setLoading] = useState(false); const [loading, setLoading] = useState(false);
const hint = useMemo( 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" className="mono"
value={apiBase} value={apiBase}
onChange={(e) => setApi(e.target.value)} onChange={(e) => setApi(e.target.value)}
placeholder="http://host:5155" placeholder="https://dc.hyf2.cc"
autoComplete="url" autoComplete="url"
/> />
</div> </div>
+1 -1
View File
@@ -16,7 +16,7 @@ export default function SettingsPage() {
<div className="card" style={{ maxWidth: 560 }}> <div className="card" style={{ maxWidth: 560 }}>
<h2 style={{ marginTop: 0 }}></h2> <h2 style={{ marginTop: 0 }}></h2>
<p style={{ color: "var(--muted)" }}> <p style={{ color: "var(--muted)" }}>
API 5155 API https://dc.hyf2.cc(同源可留空当前域名)。
</p> </p>
<form onSubmit={onSave}> <form onSubmit={onSave}>
<div className="field"> <div className="field">