https://github.com/filippofinke/reverse-proxy
↩️ A very simple reverse proxy
https://github.com/filippofinke/reverse-proxy
http nodejs proxy reverse-proxy
Last synced: about 2 months ago
JSON representation
↩️ A very simple reverse proxy
- Host: GitHub
- URL: https://github.com/filippofinke/reverse-proxy
- Owner: filippofinke
- Created: 2021-07-19T13:33:09.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2023-01-28T12:52:02.000Z (over 3 years ago)
- Last Synced: 2025-06-18T07:45:56.275Z (about 1 year ago)
- Topics: http, nodejs, proxy, reverse-proxy
- Language: JavaScript
- Homepage:
- Size: 20.5 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Welcome to reverse-proxy 👋
> A very simple reverse proxy
## Install
```sh
npm install
```
## Configuration
See [example configuration file](config.sample.js)
This configuration file exports an object that contains the following properties:
##### `port`
The port number that the server will listen on.
##### `services`
An array of service objects that define the routing rules for the server. Each service object has the following properties:
##### `hostname`
A string or array of strings representing the hostname(s) that this service will handle requests for.
##### `target`
A string representing the target URL that the server will proxy requests to.
##### `timeout`
An optional number representing the number of milliseconds before a request will timeout. If not specified, a default timeout of 10 seconds is used.
##### `endsWith`
An optional boolean value that determines if the hostname should match only if it ends with the hostname in the config. Defaults to false.
## Usage
```sh
npm run start
```
## Author
👤 **Filippo Finke**
- Website: https://filippofinke.ch
- Github: [@filippofinke](https://github.com/filippofinke)
- LinkedIn: [@filippofinke](https://linkedin.com/in/filippofinke)
## Todo
- [ ] Web Dashboard
- [ ] Users
- [ ] Usage
- [ ] Requests
## Show your support
Give a ⭐️ if this project helped you!