GithubHelp home page GithubHelp logo

tomstowe / green-proxy Goto Github PK

View Code? Open in Web Editor NEW
1.0 0.0 0.0 30 KB

Nodejs HTTPS & Websocket Proxy With Automatic SSL

TypeScript 100.00%
greenlock greenlock-proxy proxy websocket-proxy websocket-proxy-server https-proxy-server

green-proxy's Introduction

Green Proxy

Fully-fledged proxy server with support for HTTPS and websocket (WSS) queries with automatically generated Let's Encrypt SSL certificates

Features

  • Automatically get free SSL certificate from Let's Encrypt
  • Easily redirect requests for your domain to any internal address (like server on any port)
  • Distribute incoming traffic across several servers with built-in balancer
  • Websocket support
  • Pre-Setup Balancer

Based on greenlock-express and forked from greenlock-proxy.

Dev Setup

If you want to run the green proxy on a development environment, install node, then do the following:

  • Copy and rename config.example.json to config.json and fill in the details there - See here for config.json documentation
  • Run npm i to install the dependencies
  • Run npm run start to start the proxy

Live Setup

When running live, we use PM2 to handle the process running

  • Copy and rename config.example.json to config.json and fill in the details there - See here for config.json documentation
  • Run npm i to install the dependencies
  • Run npm i -g pm2 to install PM2
  • Run npm run deploy to deploy the application
  • Run npm run status to see the status of the deployment
  • Run npm run log to see any logs
  • Run npm run redeploy to redeploy if any changes are made to the application or config file
  • Run npm run stop && npm run destroy to remove the deployment

Config Documentation

See below for a list of valid attributes to include in the config.json file

  • maintainerEmail (required): The email address to send to Let's Encrypt for maintanence purposes - must be valid
  • staging (required): True if you want to test this application, false if you'd like to generate real certificates
  • sites (required): An array of the proxies that you want to create - objects inside this array must include:
    • domains (required): List of domains to proxy for (ignoring protocol)
    • targets (required): List of locations to proxy to

green-proxy's People

Contributors

geopic avatar

Stargazers

 avatar

green-proxy's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.