Files
auto-trade/scripts/pm2.autotrade-worker.config.cjs

21 lines
672 B
JavaScript
Raw Permalink Normal View History

2026-03-12 09:26:27 +09:00
module.exports = {
apps: [
{
name: "autotrade-worker",
script: "./scripts/autotrade-worker.mjs",
interpreter: "node",
instances: 1,
autorestart: true,
watch: false,
max_memory_restart: "300M",
env: {
NODE_ENV: "production",
// 서비스 단위 시크릿: "사용자별"이 아니라 앱/워커 프로세스가 공유하는 값입니다.
AUTOTRADE_WORKER_TOKEN: process.env.AUTOTRADE_WORKER_TOKEN || "",
AUTOTRADE_APP_URL: process.env.AUTOTRADE_APP_URL || "http://127.0.0.1:3001",
AUTOTRADE_WORKER_POLL_MS: process.env.AUTOTRADE_WORKER_POLL_MS || "5000",
},
},
],
};