chore: 移除硬编码 IP,改为通用形式
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# 图片生成器
|
||||
|
||||
MiniMax 文生图工具,访问 http://10.0.10.110:8195
|
||||
MiniMax 文生图工具,访问 `http://域名或IP:8195`
|
||||
|
||||
---
|
||||
|
||||
@@ -32,7 +32,7 @@ systemctl --user daemon-reload
|
||||
systemctl --user enable --now image-generator.service
|
||||
```
|
||||
|
||||
**访问:** http://目标机器:8195
|
||||
**访问:** `http://域名或IP:8195`
|
||||
|
||||
**配置 API Key:** 页面右上角 ⚙️ → 填入 MiniMax Key → 保存
|
||||
|
||||
|
||||
2
app.js
2
app.js
@@ -152,7 +152,7 @@ app.get('/', (req, res) => {
|
||||
});
|
||||
|
||||
app.listen(PORT, HOST, () => {
|
||||
console.log(`图片生成器运行于 http://${HOST === '0.0.0.0' ? '10.0.10.110' : HOST}:${PORT}`);
|
||||
console.log(`图片生成器运行于 http://0.0.0.0:${PORT}`);
|
||||
});
|
||||
|
||||
// ── Helpers ─────────────────────────────────────────────────────
|
||||
|
||||
Reference in New Issue
Block a user