mcp-hub-007: Auth hardening — per-service secrets and env-based config

This commit is contained in:
Agent 2026-03-13 10:17:45 +00:00
parent 91f0ce271b
commit 85b3f5b6e2
4 changed files with 36 additions and 6 deletions

View file

@ -4,7 +4,7 @@ module.exports = {
name: 'mcp-hub',
script: 'src/index.js',
cwd: '/workspace',
env: { NODE_ENV: 'production', PORT: 3000 },
env: { NODE_ENV: 'development', PORT: 3000, HUB_AUTH: JSON.stringify({"sample-mcp": "changeme"}) },
max_restarts: 10,
restart_delay: 1000,
log_date_format: 'YYYY-MM-DD HH:mm:ss Z',
@ -14,7 +14,7 @@ module.exports = {
name: 'sample-mcp',
script: 'sample-mcp/index.js',
cwd: '/workspace',
env: { NODE_ENV: 'production' },
env: { NODE_ENV: 'development', MCP_SECRET: 'changeme' },
max_restarts: 10,
restart_delay: 2000,
log_date_format: 'YYYY-MM-DD HH:mm:ss Z',