Skip to content

cprox 1.8.14

Install from the command line:
Learn more about npm packages
$ npm install @noblemajo/cprox@1.8.14
Install via package.json:
"@noblemajo/cprox": "1.8.14"

About this version

CProX

Docker CI/CD CI/CD MIT

typescript npm github

table of contents

about

| Docker Hub | GitHub |
CProX is an easy to configure static serve, redirect, reverse proxy and load balancing web server.

details

  • Support for http, https, ws, wss and any subprotocol.
  • Its a free open source project.
  • Available on github.com, npmjs.com and hub.docker.com.
  • Simple cli tool and easy envtionment variables.
  • Automatically self-signed certificate if required and not disabled!

configuration

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

guide

Please checkout the configuration guide.

gettings started

Checkout the test.sh and the start.sh scripts to understand what you need to think about and how to start the server.

NodeJS

install

npm i -g cprox

run

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

requirements

  • docker cli
  • Linus distribution

pull

docker pull majo418/cprox:latest

run

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

usage recommendation

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

references

contribution

    1. fork the project
    1. implement your idea
    1. create a pull/merge request
// please create seperated forks for different kind of featues/ideas/structure changes/implementations

cya ;3
by majo418

Details


Assets

  • cprox-1.8.14-npm.tgz

Download activity

  • Total downloads 0
  • Last 30 days 0
  • Last week 0
  • Today 0