Name: teletunnel
Owner: telehash
Description: telehash http proxy utility for node.js
Created: 2015-06-17 20:55:16.0
Updated: 2017-09-30 21:59:01.0
Pushed: 2015-07-18 21:03:24.0
Homepage: null
Size: 152
Language: JavaScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
telehash http proxy utility for node.js.
These first releases are primarily concerned with debugging thtp in telehash-js, so aren't super configurable via the cli. The server component will accept ALL requests for proxying, a real configuration likely will come out with v0.1.X
npm install teletunnel
To set up a teletunnel server (on example.com)
teletunnel-server -p 8000
To proxy a subdomain on a teletunnel server to a local port (3000 here)
teletunnel -p 3000 -u http://example.com
the command line will spit out your subdomain (e.g. http://gtety6wv.example.com:8000/), go visit it in your browser and it will proxy over telehash to your local port 3000 :)
Note: This module runs with express-subdomain, and Express parses the request URL for a top level domain, so developing locally without one won't be possible because Express will treat the subdomain as the domain, and the actual domain as a TLD. you can get around this by spoofing a 'real' local domain like local.net with dnsmasq or by modifying etc/hosts
MIT license, go nuts. email Ryan Bennett (nomad.ry@gmail.com) or post an issue if you run into trouble.