776 B

MTC Reverse Proxy Backend

Express API with Prisma and PostgreSQL.

Setup

  1. Copy .env.example to .env.
  2. Set DATABASE_URL to your PostgreSQL database.
  3. 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.