This commit is contained in:
dekun
2026-05-30 15:51:20 +08:00
parent 1f8d2e64e7
commit b154f1230c
5 changed files with 14 additions and 2 deletions
+3
View File
@@ -61,3 +61,6 @@ database:
proxy: proxy:
enabled: true enabled: true
url: "socks5h://127.0.0.1:1080" url: "socks5h://127.0.0.1:1080"
# ⚠️ NAV_ALLOW_EMBED / NAV_EMBED_ORIGINS 是「进程环境变量」,不要写在本文件!
# 请配置在 PM2 deploy/ecosystem.config.cjs 的 env 段,或 systemd Environment=。
@@ -32,6 +32,9 @@ module.exports = {
time: true, time: true,
env: { env: {
PYTHONUNBUFFERED: "1", PYTHONUNBUFFERED: "1",
// 本地导航 iframe 嵌入(勿写进 config.yaml,须在此或 pm2 ecosystem
// NAV_ALLOW_EMBED: "true",
// NAV_EMBED_ORIGINS: "http://192.168.8.6:5070",
}, },
}, },
], ],
+2
View File
@@ -96,3 +96,5 @@ daily_report:
run_time_cn: "08:30" run_time_cn: "08:30"
push_wecom: true push_wecom: true
run_on_startup: false run_on_startup: false
# ⚠️ NAV_ALLOW_EMBED / NAV_EMBED_ORIGINS 是进程环境变量,勿写在本文件;见 deploy/ecosystem.config.cjs
@@ -31,6 +31,9 @@ module.exports = {
time: true, time: true,
env: { env: {
PYTHONUNBUFFERED: "1", PYTHONUNBUFFERED: "1",
// 本地导航 iframe 嵌入(勿写进 config.yaml,须在此或 pm2 ecosystem
// NAV_ALLOW_EMBED: "true",
// NAV_EMBED_ORIGINS: "http://192.168.8.6:5070",
}, },
}, },
], ],
+3 -2
View File
@@ -432,9 +432,10 @@ pm2 save
| 扫描端 | 8088 | `/dashboard` | | 扫描端 | 8088 | `/dashboard` |
| 执行器 | 8090 | `/dashboard` | | 执行器 | 8090 | `/dashboard` |
**云上(PM2 / systemd 环境变量)** — 允许本地导航页嵌入: **云上(PM2 / systemd 环境变量)** — 允许本地导航页嵌入**不要写进 config.yaml**
```env ```bash
# PM2:编辑 deploy/ecosystem.config.cjs 的 env 段,然后 pm2 restart ...
NAV_ALLOW_EMBED=true NAV_ALLOW_EMBED=true
NAV_EMBED_ORIGINS=http://192.168.8.6:5070 NAV_EMBED_ORIGINS=http://192.168.8.6:5070
``` ```