Initial commit: kefu-server-saas v2.0
客服服务器完整源码,包含: - Express HTTP服务 (port 9501) - WebSocket服务 (port 9502) - SaaS多租户认证 - 坐席管理、消息管理、连接管理 - SQLite数据库(5张核心表) - 管理后台 (/admin) - 坐席工作台 (/agent, /agent-mobile) - 商城REST API (/plugin.yunqian-api) - 消息推送API (/message/push) 技术栈:Node.js 18 + Express 4 + ws 8 + better-sqlite3 + EJS + PM2
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
module.exports = {
|
||||
apps: [{
|
||||
name: 'kefu-saas',
|
||||
script: './src/app.js',
|
||||
cwd: '/www/wwwroot/kf.199ms.com',
|
||||
instances: 1,
|
||||
exec_mode: 'cluster',
|
||||
env: {
|
||||
NODE_ENV: 'production',
|
||||
PORT: 9501,
|
||||
WSS_PORT: 9502
|
||||
},
|
||||
error_file: './logs/err.log',
|
||||
out_file: './logs/out.log',
|
||||
log_date_format: 'YYYY-MM-DD HH:mm:ss Z',
|
||||
merge_logs: true,
|
||||
max_memory_restart: '300M',
|
||||
watch: false,
|
||||
autorestart: true
|
||||
}]
|
||||
};
|
||||
Reference in New Issue
Block a user