{"id":27954493,"url":"https://github.com/ebu/http-reverseproxy","last_synced_at":"2025-08-03T06:08:10.375Z","repository":{"id":13717335,"uuid":"16411399","full_name":"ebu/http-reverseproxy","owner":"ebu","description":"This project implements a very simple reverse proxy which distribute the requests using the hostname.","archived":false,"fork":false,"pushed_at":"2014-02-23T01:17:15.000Z","size":192,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":10,"default_branch":"develop","last_synced_at":"2024-04-13T22:26:53.156Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ebu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-01-31T15:16:29.000Z","updated_at":"2015-02-24T23:53:06.000Z","dependencies_parsed_at":"2022-09-06T00:10:20.858Z","dependency_job_id":null,"html_url":"https://github.com/ebu/http-reverseproxy","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ebu%2Fhttp-reverseproxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ebu%2Fhttp-reverseproxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ebu%2Fhttp-reverseproxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ebu%2Fhttp-reverseproxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ebu","download_url":"https://codeload.github.com/ebu/http-reverseproxy/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252926452,"owners_count":21826316,"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":"2025-05-07T17:30:23.494Z","updated_at":"2025-05-07T17:30:24.189Z","avatar_url":"https://github.com/ebu.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# http-reverseproxy\n\nThis project implements a simple reverse proxy which distributes the requests according to the hostname.\n\nWe use it to build demonstrators on virtual machines running different servers of a distributed system.\n\nThe project is widely based on [node-http-proxy](https://github.com/nodejitsu/node-http-proxy)\n\nMore information on [EBU developments](http://www.ebu.io)\n\n\n## Prerequisites\n\nEnsure your system has [Node.js](http://nodejs.org/) and NPM installed.\n\n## Getting Started\n\n    $ git clone https://github.com/ebu/http-reverseproxy.git\n    $ cd http-reverseproxy\n    $ npm install\n\n## Start the Server\n\n  Edit `config.dist.js` and rename it to `config.js to run the server\n\n    $ npm start\n\n\n## Configuration\n\n    var config = {\n      listening_port: 80,\n      https: {\n        listening_port: 443,\n        key: '', // SSL Private key\n        cert: '' // SSL Public certificate\n      },\n      backend_servers: [\n        {\n          'local_port': 8080,\n          'origin_host': 'www.ebu.io'\n        },\n        {\n          'local_port': 8081,\n          'origin_host': 'bbc1.ebu.io'\n        },\n        {\n          'local_port': 8082,\n          'origin_host': 'bbc2.ebu.io'\n        }\n      ],\n      fallback_port: 8090 | null,\n      error_message: 'The system is down.\\n\\n2014 - EBU Technology \u0026 Innovation - ebu.io'\n    };\n\n    module.exports = config;\n\n\n`listening_port` - Listening port of the reverse proxy\n\n`https` - It enables SSL support on `https.listening_port` using the private key `key` and the public certificate `cert`\n\n`backend_servers` - The request are distributed according to the origin_host to the local port.\n\n`fallback_port` - If no backend_servers rules match the request, the request will be sent to this local port if different than null.\nOtherwise an error_message is returned with a status code 500.\n\n`error_message` - Message sent in case of error (ie Backend server doesn't respond.)\n\n\n## Related Projects\n\n* [CPA Authentication Provider](https://github.com/ebu/cpa-auth-provider)\n* [CPA Service Provider](https://github.com/ebu/cpa-service-provider)\n* [CPA Client](https://github.com/ebu/cpa-client)\n\n\n## Contributors\n\n* [Michael Barroco](https://github.com/barroco) (EBU)\n\n\n## Copyright \u0026 License\n\nCopyright (c) 2014, EBU-UER Technology \u0026 Innovation\n\nThe code is under BSD (3-Clause) License. (see LICENSE.txt)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Febu%2Fhttp-reverseproxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Febu%2Fhttp-reverseproxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Febu%2Fhttp-reverseproxy/lists"}