← back to Timeout Agent

ecosystem.config.cjs

17 lines

module.exports = {
  apps: [{
    name: 'timeout-agent',
    script: 'server.js',
    cwd: '/root/DW-Agents/timeout-agent',
    node_args: '--max-old-space-size=256',
    env: {
      NODE_ENV: 'production',
      PORT: 9614
    },
    max_memory_restart: '300M',
    restart_delay: 5000,
    max_restarts: 50,
    autorestart: true
  }]
};