cprox 1.8.10
Install from the command line:
Learn more about npm packages
$ npm install @noblemajo/cprox@1.8.10
Install via package.json:
"@noblemajo/cprox": "1.8.10"
About this version
- CProX
- table of contents
- about
- configuration
- gettings started
- usage recommendation
- references
- contribution
|
Docker Hub
|
GitHub
|
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. - Its a
free
open source
project. - Available on
github.com
,npmjs.com
andhub.docker.com
. - Simple
cli tool
and easyenvtionment variables
. - Automatically
self-signed certificate
if required and not disabled!
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
Please checkout the configuration guide.
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
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
Help:
cprox -h
- docker cli
- Linus distribution
docker pull majo418/cprox:latest
docker run -it --rm \
-p 80:80 \
-p 443:443 \
-v $(pwd)/certs:/app/certs \
majo418/cprox \
*=REDIRECT:https://start.duckduckgo.com
Help:
docker run -it --rm majo418/cprox -h
Running the program under different conditions might work, have unpredictable effects, or might work only partially or not at all.
The program was tested under the following conditions:
- node.js v16
- npm v8
- ubuntu 20.04
-
- fork the project
-
- implement your idea
-
- create a pull/merge request
// please create seperated forks for different kind of featues/ideas/structure changes/implementations
cya ;3
by majo418