Skip to content
forked from gatejs/core

Javascript based reverse & forward proxy with high performance & capability

License

Notifications You must be signed in to change notification settings

cyberplant/gate

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gate

GateJS is a javascript based reverse & forward proxy with high performance & capability.

For more informations about gatejs & configuration please visit the wiki at https://github.com/binarysec/gate/wiki

note: gatejs team is looking for someone to maintain debian packages, contact us at info [at] binarysec [dot] com

Learn more about gatejs contribution @ https://github.com/binarysec/gate/wiki/Contribution

build status

Installation

TLDR

To build and install gatejs, run the following commands :

$ ./configure
$ make
# sudo make install

Installation from git

To install this project from git, you will have to run the following command :

$ git clone --recurse-submodules https://github.com/binarysec/gate.git gate

If you forgot the --recurse-submodules, the submodules will be downloaded automatically by the make step. Optionally, you can also use :

$ cd gate
$ git submodule update --init --recursive

or :

$ make git-submodules-up

If you downloaded the zip from github, you will have to fetch the submodules yourself.

Available options

The configure script have the following options :

  • --prefix-share : The path where the static data will be written. Defaults to /usr/local/share.
  • --prefix-conf : The path where the configuration file will be copied. Defaults to /etc.
  • --prefix-bin : The path where the gatejs program will be installed. Defaults to /usr/local/sbin.
  • --prefix-var : The path where the temporary files will be written (PID file, sockets, ...). Defaults to /var.
  • --prefix-data : The path where the persistent data will be written (Cache files). Defaults to /home/gatejs-data.
  • --help : Show a short help text.

System spec

Debian packages

apt-get install gcc make g++ python

Forward proxy configuration example

var serverConfig = function(bs) { return({
    serverProcess: 4,
    hostname: "testServer0",
    runDir: "/var/run/gatejs",
    dataDir: "/home/gatejs-data",
    logDir: "/var/log/gatejs",
    confDir: '/etc/gatejs',

    http: {
        forwardInterface: {
            type: 'forward',
            port: 80,
            pipeline: 'pipetest'
        }
    },

    pipeline: {
        pipetest: [
            ['cache', { }],
            ['proxyPass', { mode: 'host', timeout: 10 }]
        ],
    }

})};

module.exports = serverConfig;

About

Javascript based reverse & forward proxy with high performance & capability

Resources

License

Stars

Watchers

Forks

Packages

No packages published