{"id":13623750,"url":"https://github.com/gatejs/core","last_synced_at":"2025-04-15T20:32:10.517Z","repository":{"id":17285134,"uuid":"20055319","full_name":"gatejs/core","owner":"gatejs","description":"Javascript based reverse \u0026 forward proxy with high performance \u0026 capability","archived":false,"fork":false,"pushed_at":"2019-08-04T19:00:40.000Z","size":2403,"stargazers_count":98,"open_issues_count":9,"forks_count":15,"subscribers_count":15,"default_branch":"master","last_synced_at":"2025-01-25T09:28:51.985Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gatejs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-05-22T09:25:55.000Z","updated_at":"2024-11-04T04:29:10.000Z","dependencies_parsed_at":"2022-09-26T21:21:53.905Z","dependency_job_id":null,"html_url":"https://github.com/gatejs/core","commit_stats":null,"previous_names":["binarysec/gate"],"tags_count":30,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gatejs%2Fcore","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gatejs%2Fcore/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gatejs%2Fcore/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gatejs%2Fcore/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gatejs","download_url":"https://codeload.github.com/gatejs/core/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249148058,"owners_count":21220469,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T21:01:35.229Z","updated_at":"2025-04-15T20:32:10.001Z","avatar_url":"https://github.com/gatejs.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"gate\n====\nGateJS is a javascript based reverse \u0026amp; forward proxy with high\nperformance \u0026amp; capability.\n\nFor more informations about gatejs \u0026 configuration please visit the wiki at https://github.com/gatejs/core/wiki\n\nLearn more about gatejs contribution @ https://github.com/gatejs/core/wiki/Contribution\n\n[![][travis-build-img]][travis-build-url]\n[![][gt-issues]][gt-issues]\n[![][gt-forks]][gt-forks]\n[![][gt-stars]][gt-stars]\n[![][gt-licence]][gt-licence]\n\n## Installation\n\n### TLDR\n\nYou need to install before NodeJS \u003e4.x.x. Once nodejs is installed you can run:\n\n\t$ sudo npm install -g gatejs\n\n### Installation from git\nTo install this project from git, you will have to run the following command :\n\n\t$ git clone https://github.com/gatejs/core.git gate\n\t$ cd gate\n\t$ npm install\n\nIf you downloaded the zip from github, you will have to fetch the submodules\nyourself.\n\n### Running gatejs\nYou can use the forever process manager to run and control gatejs.\n\n```bash\nmkdir /var/log/gatejs\nforever -a -o /var/log/gatejs/forever.log -e /var/log/gatejs/forever-error.log start --uid gatejs --max_old_space_size=150 /usr/bin/gatejs --config=/etc/gatejs/config.js\n```\n\nYou can also run the command at the reboot time using **cron**!\n\nAdd the following lines when editing crontab (crontab -e):\n```\n@reboot forever -a -o /var/log/gatejs/forever.log -e /var/log/gatejs/forever-error.log start --uid gatejs --max_old_space_size=150 /usr/bin/gatejs --config=/etc/gatejs/config.js\n```\n\n**--max_old_space_size=150** allows to control the V8 garbage collector which is set to 150MB.\n\n### Debian packages\n```bash\napt-get install gcc make g++ python\n```\n\n## Forward proxy configuration example\n```js\nvar serverConfig = function(bs) { return({\n    serverProcess: 4,\n    hostname: \"testServer0\",\n    runDir: \"/var/run/gatejs\",\n    dataDir: \"/home/gatejs-data\",\n    logDir: \"/var/log/gatejs\",\n    confDir: '/etc/gatejs',\n\n    http: {\n        forwardInterface: {\n            type: 'forward',\n            port: 80,\n            pipeline: 'pipetest'\n        }\n    },\n\n    pipeline: {\n        pipetest: [\n            ['cache', { }],\n            ['proxyPass', { mode: 'host', timeout: 10 }]\n        ],\n    }\n\n})};\n\nmodule.exports = serverConfig;\n```\n\n[travis-build-img]: https://secure.travis-ci.org/gatejs/core.png\n[travis-build-url]: http://travis-ci.org/gatejs/core\n[gt-issues]: https://img.shields.io/github/issues/gatejs/core.svg\n[gt-forks]: https://img.shields.io/github/forks/gatejs/core.svg\n[gt-stars]: https://img.shields.io/github/stars/gatejs/core.svg\n[gt-licence]: https://img.shields.io/badge/license-GPLv3-blue.svg\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgatejs%2Fcore","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgatejs%2Fcore","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgatejs%2Fcore/lists"}