- Reverse proxy
- Create proxies dynamically
- Prometheus metrics
- Procted by helmet
- Graceful Shutdown
Start a proxy usig docker:
docker container run \
-p 3000:3000 \
-v "node-proxy:/usr/src/app/" \
-e NODE_ENV=production \
--name node-proxy \
gabrielrufino/node-proxy
These are one of the routes for managing the proxy server. You can see the rest of them in the swagger docs.
GET /
Response:
{"I":"am alive"}
POST /proxies
{
"namespace": "users",
"target": "https://users.yourmicroservices.dev"
}
MIT