CProX is an easy to configure static serve
, redirect
, reverse proxy
and load balancing
web server.
- Support for
http
,https
,ws
,wss
and any subprotocol. - Simple
cli tool
and easyenvtionment variables
. - Automatically
self-signed certificate
if 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:58080
Checkout 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 cprox
Checkout the help output for a quit overview:
cprox -h
Run as redirect server:
cprox *=REDIRECT:https://start.duckduckgo.com
Run as static file server:
cprox *=STATIC:/var/www/html
Run as proxy server:
cprox *=PROXY:http://127.0.0.1:8080
Cli 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.