CProX is an easy to configure static serve, redirect, reverse proxy and load balancing web server.
- Support for
http,https,ws,wssand any subprotocol. - Simple
cli tooland easyenvtionment variables. - Automatically
self-signed certificateif required (or disabled)!
- node v16
- npm v8
Please checkout the configuration guide.
But here a quick example:
cprox \
*=STATIC:/var/www/html \
*/test=STATIC:/var/www/test \
example.com=REDIRECT:https://www.example.com \
www.example.com=STATIC:/var/www/example \
www.example.com/proxy=PROXY:http://127.0.0.1:58080Checkout the test.sh and the start.sh scripts to understand what you need to think about and how to start the server.
npm i -g cproxCheckout the help output for a quit overview:
cprox -hRun as redirect server:
cprox *=REDIRECT:https://start.duckduckgo.comRun as static file server:
cprox *=STATIC:/var/www/htmlRun as proxy server:
cprox *=PROXY:http://127.0.0.1:8080Cli tool help output:
Contributions to this project are welcome!
Interested users can refer to the guidelines provided in the CONTRIBUTING.md file to contribute to the project and help improve its functionality and features.
This project is licensed under the MIT license, providing users with flexibility and freedom to use and modify the software according to their needs.
This project is provided without warranties.
Users are advised to review the accompanying license for more information on the terms of use and limitations of liability.