Skip to content

This is a simple JavaScript code designed to determine the origin domain of incoming requests to a server and perform port forwarding to the specified port for that domain.

License

Notifications You must be signed in to change notification settings

iamnullman/proxy-middleware

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

proxy-middleware

This is a simple JavaScript code designed to determine the origin domain of incoming requests to a server and perform port forwarding to the specified port for that domain.

[GitHub license] [Stars]

Getting Started:

  1. First, install the dependencies:
npm install
# veya
pnpm install
# veya
yarn install
  1. Configure the proxy settings in the proxy.js file. You can specify the mapping of origin domains to target ports in this file.

  2. Run the proxy middleware:

node .

The proxy will now listen for incoming requests and forward them to the appropriate port based on the origin domain.

Usage:

  1. Clone the repository and configure the proxy as mentioned above.
  2. Start the proxy middleware using "node .". 3 Incoming requests to the server will be routed to the specified target ports based on the origin domain.

Contributing:

If you want to contribute to this project, you can follow these steps:

  1. Fork this repository and run it on your own project.
  2. Make your changes and add descriptive comments.
  3. Create a pull request.

License:

This project is licensed under the MIT License. For more information, see the LICENSE file.

Contact:

For any questions or feedback, you can reach us at [email protected] or Discord

About

This is a simple JavaScript code designed to determine the origin domain of incoming requests to a server and perform port forwarding to the specified port for that domain.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published