guanghulab/server/mcp-server/ecosystem.config.cjs

33 lines
1021 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/**
* 铸渊 MCP Server · PM2 生态系统配置
* 使用 .cjs 后缀强制 CommonJS不受 package.json "type": "module" 影响
*/
module.exports = {
apps: [{
name: 'guanghulab-mcp-server',
script: 'index.js',
cwd: __dirname,
instances: 1,
autorestart: true,
watch: false,
max_memory_restart: '128M',
env: {
NODE_ENV: 'production',
MCP_PORT: '8083',
MCP_HOST: '127.0.0.1',
GITEA_URL: 'http://127.0.0.1:3001',
GITEA_TOKEN: '3e16b79c427bb44b77c00b319aa641bde8f61d84',
GITEA_OWNER: 'bingshuo',
GITEA_REPO: 'guanghulab',
REPO_DIR: '/data/guanghulab/repo',
MCP_ACCESS_KEY_PATH: '/data/guanghulab/mcp-server/.access-key',
},
log_file: '/data/guanghulab/.runtime/logs/mcp-server-combined.log',
error_file: '/data/guanghulab/.runtime/logs/mcp-server-error.log',
out_file: '/data/guanghulab/.runtime/logs/mcp-server-out.log',
log_date_format: 'YYYY-MM-DD HH:mm:ss Z',
merge_logs: true,
time: true,
}],
};