Commit Graph

157 Commits

Author SHA1 Message Date
Ajay Gandhi
b1c296a409 Generate human readable IDs for client URLs (#77)
Based on @FranzSkuffka's suggested enhancement in PR 207 on
localtunnel/localtunnel
(https://github.com/localtunnel/localtunnel/pull/207), this PR uses the
"human-readable-ids" package to generate IDs of the form
"adjective-noun-number". These IDs are easier to remember and arguably
more useful in testing since they can be retyped without copying and
pasting.

Some sample IDs generated by this package are:

* heavy-puma-90
* grump-walrus-64
* purple-starfish-58
* nasty-seahorse-9
2018-04-01 18:00:21 -07:00
Alex Huang
d7852a3dd1 Add option to set server address (#80)
Since this server may run behind a reverse proxy like Nginx, it should be able to bind to localhost only rather than listening to the whole network.
2018-04-01 17:37:45 -07:00
Roman Shtylman
2a9bc27117 do not exit on uncaught exception 2017-12-11 21:35:40 -08:00
Roman Shtylman
3d6798a2bf fix api status endpoint 2017-12-11 21:29:11 -08:00
Roman Shtylman
5fb9dbaaa1 extract ClientManager from server.js
Make client manager more robust when piping connections.
2017-12-11 21:16:55 -08:00
Roman Shtylman
b4a36c78b0 replace express with koa 2017-12-10 11:34:29 -08:00
Roman Shtylman
9933611319 move proxy.js to lib/Proxy.js 2017-12-10 10:37:10 -08:00
Roman Shtylman
4a4b72b492 update travis to test using node 9.2 2017-12-10 10:32:01 -08:00
Roman Shtylman
764b58f883 fix incorrect require in bin/server 2017-12-10 10:30:23 -08:00
Roman Shtylman
ab9b47d2b3 remove http-proxy dependency 2017-12-10 10:27:03 -08:00
Roman Shtylman
3e12b7ef31 upgrade debug to 3.1.0 2017-12-10 10:24:24 -08:00
Roman Shtylman
908ab316c3 update bluebird to 3.5.1 2017-12-10 10:22:05 -08:00
Roman Shtylman
61708ec698 update book to 1.3.3 2017-12-10 10:22:00 -08:00
Roman Shtylman
54f0eae039 upgrade babel register and babel plugin transform commonjs 2017-12-10 10:17:14 -08:00
Roman Shtylman
308c2d4b85 remove babel polyfill 2017-12-10 10:15:28 -08:00
Roman Shtylman
6318db6075 remove babel async to generator transform 2017-12-10 10:14:59 -08:00
Roman Shtylman
db5b632a9f add dev script to package.json 2017-12-10 09:56:58 -08:00
Roman Shtylman
55a7f8eeb6 update Dockerfile to node 9.2.1 2017-12-10 09:36:53 -08:00
Roman Shtylman
ddad1851fc add yarn.lock 2017-12-10 09:27:57 -08:00
Jonas Finnemann Jensen
2539755155 Use generated id in the returned url (#59) 2017-12-10 08:35:44 -08:00
Arron Gibson
48475a404b readme: Fix minor typo (#58) 2017-02-08 20:56:19 -08:00
Roman Shtylman
30df06ff14 add memory usage to status api endpoint 2016-11-27 12:47:59 -08:00
Roman Shtylman
c67d1a4d37 bookrc: add error print to further diagnose ECONNRESETS 2016-11-27 12:37:10 -08:00
Roman Shtylman
2a6561e774 add error handlers to requests and sockets
Trying to flush out cause of sporadic socket failures and identify which
socket is not being handled.
2016-11-27 09:50:14 -08:00
Bryan Helmig
5ee2ded1fd test: fix redirect (#53) 2016-09-03 15:00:33 -07:00
Roman Shtylman
c81ed7ff4a travis: update to test with node 6.2 2016-07-24 21:37:18 -04:00
Roman Shtylman
eae9718ab3 redirect to github site for landing page
avoid proxying all the landing page requests
2016-07-24 21:34:34 -04:00
Roman Shtylman
dbf91cfa20 fix sending response when no client socket available 2016-07-10 22:24:20 -07:00
Roman Shtylman
d7fbf3c39e fix processing waiting callbacks inside next_socket 2016-07-10 20:22:35 -07:00
Roman Shtylman
f1fa607ad9 README: add deploy instructions 2016-07-09 17:22:14 -07:00
Roman Shtylman
965be6e1ff remove devops folder
moved to separate nginx repo
2016-07-09 17:07:51 -07:00
Roman Shtylman
a2a58f4c6f refactor with async/await
Trying to be more robust about error handling and failure.
2016-07-09 17:06:13 -07:00
Roman Shtylman
f12f1c81b3 Merge pull request #41 from scandinaro/master
fixed issue with response code and headers
2015-12-16 21:20:20 -08:00
Dom Scandinaro
4ee7a6738f fixed issue with response code and headers 2015-12-16 09:42:48 -06:00
Roman Shtylman
596ead14e6 Merge pull request #37 from sidthekidder/master
increased subdomain character limit to 63
2015-11-17 21:07:51 -08:00
Siddhartha Sahai
7923e80b08 increased subdomain character limit to 63 2015-11-17 21:08:36 +05:30
Roman Shtylman
a38f378c3b Merge pull request #35 from ReadmeCritic/master
Readme: Update redirects
2015-11-10 18:35:49 -08:00
frankenbot
1a32c88f5c Update redirects 2015-11-08 10:31:58 -08:00
Roman Shtylman
27b3fbccf7 readme: fix travis badge 2015-11-04 20:41:03 -08:00
Roman Shtylman
22bed6a681 travis: fix node version 2015-11-04 20:39:50 -08:00
Roman Shtylman
3cec10dceb travis: use new container infra and node 4.x 2015-11-04 20:38:40 -08:00
Roman Shtylman
ad914658f8 readme: update travis badge 2015-11-04 20:37:27 -08:00
Roman Shtylman
f8fa049966 remove bouncy
rework request proxy to use native http request and direct socket pipe.
Cuts out bouncy which is no longer maintained and simplifies the code
path.
2015-11-04 20:01:01 -08:00
Roman Shtylman
4f0f78d1ee package.json: move ws to dev deps 2015-11-04 08:36:35 -08:00
Roman Shtylman
fd6498d14d update localtunnel dev-dep 2015-11-04 08:36:14 -08:00
Roman Shtylman
17330a8751 Dockerfile: update to node 4.2.1 2015-10-27 22:27:12 -07:00
Roman Shtylman
17714f243a Merge pull request #34 from lukehorvat/typos
Fix minor typos
2015-10-21 19:18:36 -07:00
Luke Horvat
eddc50920b Fix minor typos 2015-10-08 15:37:30 +11:00
Roman Shtylman
00256f4e77 Merge pull request #33 from lukehorvat/license
Define license in package.json
2015-10-07 19:50:19 -07:00
Luke Horvat
6dcb2d3df0 Define license in package.json 2015-10-08 12:04:13 +11:00