forked from wangziqi/gongxue-base
feat: auto-create Student for DingTalk users on sync; add DingTalk env to ecosystem config
This commit is contained in:
@@ -14,9 +14,21 @@ module.exports = {
|
||||
script: 'apps/server/dist/main.js',
|
||||
instances: 1,
|
||||
exec_mode: 'fork',
|
||||
// 环境变量
|
||||
env: {
|
||||
NODE_ENV: 'production',
|
||||
PORT: '3000',
|
||||
DB_TYPE: 'mysql',
|
||||
DB_HOST: '127.0.0.1',
|
||||
DB_PORT: '3306',
|
||||
DB_USERNAME: 'root',
|
||||
DB_PASSWORD: 'gongxue_2024',
|
||||
DB_DATABASE: 'gongxue',
|
||||
DB_SYNCHRONIZE: 'true',
|
||||
JWT_SECRET: 'gongxue-jwt-prod-2026-k3y',
|
||||
JWT_EXPIRES_IN: '24h',
|
||||
UPLOAD_DIR: './uploads',
|
||||
DINGTALK_APP_KEY: 'dingvpcg2i6p25ftxw5c',
|
||||
DINGTALK_APP_SECRET: 'ovAEql1r5Lu9FvBve6bHwBZxXAZuEQwSNpG3DkRJk4DMhQwJ_raKDQc6emdlJisU',
|
||||
},
|
||||
// 内存限制
|
||||
max_memory_restart: '512M',
|
||||
@@ -35,15 +47,7 @@ module.exports = {
|
||||
script: 'serve-proxy.js',
|
||||
env: {
|
||||
NODE_ENV: 'production',
|
||||
FRONTEND_PORT: 9527, // 需 root 或 setcap: sudo setcap 'cap_net_bind_service=+ep' $(which node)
|
||||
API_TARGET: 'http://127.0.0.1:3000',
|
||||
},
|
||||
max_memory_restart: '256M',
|
||||
max_restarts: 5,
|
||||
error_file: 'logs/frontend-error.log',
|
||||
out_file: 'logs/frontend-out.log',
|
||||
autorestart: true,
|
||||
watch: false,
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user