{"id":20293003,"url":"https://github.com/gemini-testing/gemini-tunnel","last_synced_at":"2025-04-11T11:31:59.988Z","repository":{"id":57141421,"uuid":"42719080","full_name":"gemini-testing/gemini-tunnel","owner":"gemini-testing","description":"DEPRECATED use https://github.com/gemini-testing/ssh-tunneler","archived":false,"fork":false,"pushed_at":"2016-10-03T10:06:19.000Z","size":28,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-25T07:51:12.758Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gemini-testing.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2015-09-18T11:54:52.000Z","updated_at":"2019-02-24T08:56:27.000Z","dependencies_parsed_at":"2022-09-05T18:31:43.357Z","dependency_job_id":null,"html_url":"https://github.com/gemini-testing/gemini-tunnel","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gemini-testing%2Fgemini-tunnel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gemini-testing%2Fgemini-tunnel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gemini-testing%2Fgemini-tunnel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gemini-testing%2Fgemini-tunnel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gemini-testing","download_url":"https://codeload.github.com/gemini-testing/gemini-tunnel/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248383869,"owners_count":21094621,"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-11-14T15:20:39.553Z","updated_at":"2025-04-11T11:31:59.960Z","avatar_url":"https://github.com/gemini-testing.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gemini-tunnel\n\n[![Build Status](https://travis-ci.org/gemini-testing/gemini-tunnel.svg)](https://travis-ci.org/gemini-testing/gemini-tunnel)\n\nPlugin for setting up ssh tunnel while running tests with Gemini.\n\n## Installation\n\n`npm install gemini-tunnel`\n\n## Configuration\n\n- __host__ Address of remote host to which tunnel which will be established.\n- __ports__ Ports range on remote host, port will be picked randomly from this range. If required to set specific port, __min__ and __max__ values must same.\n- __ports.min__ Min port number.\n- __ports.max__ Max port number.\n- __localport__ Available port on local machine.\n- __user__ (optional) User to connect to remote host\n- __enabled__ (optional) Determines is plugin enabled. If option set as `false`, plugin will do nothing, otherwise plugin will work.\n- __retries__ (optional) Number of attempts to establish tunnel. Defaults to 5 times.\n- __protocol__ (optional) Protocol which will be used in resulting root url. Defaults to `http`\n- __hostDecorator__ (optional) Function which can be used to decorate hostname before it will be written into rootUrl\n\nSet the configuration to your `.gemini.js`\n\n```js\nsystem: {\n  plugins: {\n    gemini-tunnel: {\n      host: 'remote_host_address',\n      user: 'user',\n      ports: {\n        min: 8000,\n        max: 8100\n      },\n      localport: 8080,\n      enabled: true,\n      retries: 3,\n      protocol: 'https',\n      hostDecorator: (baseHost) =\u003e { // hostname from the original rootUrl\n        return /^m\\./.test(baseHost)\n          ? 'm.remote_host_address'\n          : 'remote_host_address'\n      }\n    }\n  }\n}\n```\n\nIf passed config is not an object, plugin will do nothing.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgemini-testing%2Fgemini-tunnel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgemini-testing%2Fgemini-tunnel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgemini-testing%2Fgemini-tunnel/lists"}