first commit

This commit is contained in:
MOHAN 2026-08-01 18:27:55 +05:30
parent 84d6e5a3b1
commit d5b0af1a43

View File

@ -1,40 +1,8 @@
# MTC Reverse Proxy Backend # MTC Reverse Proxy Manager — Backend
Express API with Prisma and PostgreSQL. Express 5 + Prisma + PostgreSQL API for managing reverse-proxy service catalogs, bulk imports, and gateway proxy calls.
## Setup ```bash
1. Copy `.env.example` to `.env`.
2. Set `DATABASE_URL` to your PostgreSQL database.
3. Run:
```powershell
npm install npm install
npm run prisma:generate
npm run prisma:migrate
npm run dev npm run dev
``` ```
## JSON Import Shape
```json
{
"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`.