-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathecosystem.config.js
More file actions
31 lines (30 loc) · 973 Bytes
/
Copy pathecosystem.config.js
File metadata and controls
31 lines (30 loc) · 973 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/**
* PM2 ecosystem example for Active Directory MCP (HTTP transport).
*
* Copy this file to your deployment location and adjust:
* - name unique PM2 process name
* - script path to your start-http.sh wrapper
* - cwd directory containing your config
* - AD_MCP_CONFIG full path to your ad-config.json
* - error_file/out_file log paths writable by the runtime user
*/
module.exports = {
apps: [{
name: 'mcp-ad',
script: './start-http.sh',
interpreter: '/bin/bash',
cwd: '/path/to/your/ad-mcp-deployment',
instances: 1,
autorestart: true,
watch: false,
max_memory_restart: '256M',
env: {
AD_MCP_CONFIG: '/path/to/your/ad-config/ad-config.json',
PYTHONPATH: '/path/to/your/ad-mcp-deployment/src'
},
error_file: '/var/log/mcp-ad-error.log',
out_file: '/var/log/mcp-ad-out.log',
log_date_format: 'YYYY-MM-DD HH:mm:ss Z',
merge_logs: true
}]
};