feat: scaffold gold_monitor web hub, API, PM2 deploy and docs

This commit is contained in:
dekun
2026-10-17 17:43:17 +08:00
commit fb35968a1f
35 changed files with 2080 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
/**
* PM2 进程配置 — gold_monitor
* 端口默认 5800
*/
const path = require("path");
const root = path.resolve(__dirname, "..");
module.exports = {
apps: [
{
name: "gold_monitor",
cwd: root,
script: path.join(root, ".venv/bin/gunicorn"),
args: "wsgi:app --bind 0.0.0.0:5800 --workers 2 --threads 4 --timeout 120",
interpreter: "none",
autorestart: true,
max_restarts: 20,
min_uptime: "5s",
env: {
PYTHONUNBUFFERED: "1",
},
},
],
};