database/config/database.example.json
2025-12-27 16:21:09 +08:00

67 lines
1.4 KiB
JSON

{
"server": {
"listen": {
"host": "0.0.0.0",
"port": 7700
},
"auth": {
"type": "token",
"token": "ENV:MCP_AUTH_TOKEN"
},
"maxConcurrentClients": 50,
"logLevel": "info"
},
"environments": {
"drworks": {
"type": "postgres",
"connection": {
"host": "47.99.124.43",
"port": 5432,
"database": "shcis_drworks_cpoe_pg",
"user": "postgres",
"password": "ENV:MCP_DRWORKS_PASSWORD",
"ssl": {
"require": true
}
},
"defaultSchema": "dbo",
"searchPath": ["dbo", "api", "nurse"],
"pool": {
"max": 10,
"idleTimeoutMs": 30000,
"connectionTimeoutMs": 10000
},
"statementTimeoutMs": 60000,
"slowQueryMs": 2000,
"mode": "readwrite"
},
"ipworkstation": {
"type": "postgres",
"connection": {
"host": "47.99.124.43",
"port": 5432,
"database": "shcis_ipworkstation",
"user": "postgres",
"password": "ENV:MCP_IPWORKSTATION_PASSWORD",
"ssl": {
"require": true
}
},
"defaultSchema": "public",
"searchPath": ["public", "admin"],
"pool": {
"max": 10
},
"statementTimeoutMs": 60000,
"mode": "readonly"
}
},
"audit": {
"enabled": true,
"output": "stdout",
"format": "json",
"redactParams": true,
"maxSqlLength": 200
}
}