https://github.com/ripe-tech/simple-proxy
Simple HTTP proxy for node.js
https://github.com/ripe-tech/simple-proxy
http node proxy simple
Last synced: 9 months ago
JSON representation
Simple HTTP proxy for node.js
- Host: GitHub
- URL: https://github.com/ripe-tech/simple-proxy
- Owner: ripe-tech
- Created: 2019-09-18T18:02:46.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-05-25T17:42:08.000Z (almost 3 years ago)
- Last Synced: 2023-05-25T18:51:17.598Z (almost 3 years ago)
- Topics: http, node, proxy, simple
- Language: JavaScript
- Homepage:
- Size: 86.9 KB
- Stars: 0
- Watchers: 12
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# Simple (HTTP) Proxy
Simple HTTP proxy for node.js that pipelines content from back-end to front-end server with minimal buffer and minimal latency.
## Installation
```bash
npm install
npm start
```
## Configuration
| Name | Type | Default | Description |
| ----------------- | ------ | ---------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- |
| **HOSTNAME** | `str` | `127.0.0.1` | The address of the server that serves the app. |
| **PORT** | `int` | `3000` | The port the server will listen at. |
| **KEY** | `str` | `null` | Secret key that should be passed in protected calls so that the server side "trusts" the client side (authentication). |
| **TARGET** | `str` | `https://app.platforme.com/` | The target server that the server will proxy to. |
| **PRX_TARGET** | `str` | `https://app.platforme.com/` | The same as `TARGET`. |
| **PRX_KEEPALIVE** | `int` | `600000` | The number of milliseconds to keep the back-end connections alive in the connection pool |
| **WHITELIST** | `list` | `[]` | A list of query params and allowed values. Query params not in the list are not checked. (e.g. `WHITELIST="param1:val1,val2;param2:val1,val2"`) |
## License
Simple (HTTP) Proxy is currently licensed under the [Apache License, Version 2.0](http://www.apache.org/licenses/).
## Build Automation
[](https://github.com/ripe-tech/simple-proxy/actions)
[](https://www.apache.org/licenses/)