Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/servicespack/proxies-api
Proxy made in Node.js
https://github.com/servicespack/proxies-api
http nodejs proxy server
Last synced: 11 days ago
JSON representation
Proxy made in Node.js
- Host: GitHub
- URL: https://github.com/servicespack/proxies-api
- Owner: servicespack
- License: mit
- Created: 2021-06-03T18:26:45.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-09-05T21:58:55.000Z (2 months ago)
- Last Synced: 2024-11-08T23:52:50.788Z (11 days ago)
- Topics: http, nodejs, proxy, server
- Language: JavaScript
- Homepage:
- Size: 1.26 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
![Node Proxy](https://drive.google.com/uc?export=view&id=14dw6D75qaUuItbnmhNGg7wx9Eds_DiEm)
---
* Reverse proxy
* Create proxies dynamically
* Prometheus metrics
* Procted by [helmet](https://helmetjs.github.io/)
* Graceful Shutdown## Getting started
Start a proxy usig docker:
```bash
docker container run \
-p 3000:3000 \
-v "node-proxy:/usr/src/app/" \
-e NODE_ENV=production \
--name node-proxy \
gabrielrufino/node-proxy
```## API
These are one of the routes for managing the proxy server. You can see the rest of them in the swagger docs.
### Ping route
> GET /
Response:
```json
{"I":"am alive"}
```### Create a proxy
> POST /proxies
```json
{
"namespace": "users",
"target": "https://users.yourmicroservices.dev"
}
```## LICENSE
MIT