776 B
776 B
MTC Reverse Proxy Backend
Express API with Prisma and PostgreSQL.
Setup
- Copy
.env.exampleto.env. - Set
DATABASE_URLto your PostgreSQL database. - Run:
npm install
npm run prisma:generate
npm run prisma:migrate
npm run dev
JSON Import Shape
{
"servers": [
{
"name": "Billing Server",
"ipAddress": "192.168.1.50",
"services": [
{
"name": "Invoice API",
"port": 8080,
"endpoint": "/api/invoices/sync",
"method": "POST",
"requestTemplate": { "limit": 10 }
}
]
}
]
}
Exact duplicate services are skipped. Conflicting services are returned by the preview endpoint and require mode: "overwrite" in /api/imports/apply.