first commit
This commit is contained in:
parent
84d6e5a3b1
commit
d5b0af1a43
38
README.md
38
README.md
@ -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
|
||||
|
||||
1. Copy `.env.example` to `.env`.
|
||||
2. Set `DATABASE_URL` to your PostgreSQL database.
|
||||
3. Run:
|
||||
|
||||
```powershell
|
||||
```bash
|
||||
npm install
|
||||
npm run prisma:generate
|
||||
npm run prisma:migrate
|
||||
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`.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user