Skip to content

filippofinke/reverse-proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Welcome to reverse-proxy 👋

A very simple reverse proxy

Install

npm install

Configuration

See example configuration file

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

npm run start

Author

👤 Filippo Finke

Todo

  • Web Dashboard
    • Users
    • Usage
    • Requests

Show your support

Give a ⭐️ if this project helped you!

Buy Me A McFlurry

About

↩️ A very simple reverse proxy

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published