Commit Graph

150 Commits

Author SHA1 Message Date
tigerbot 0daf1b909a exposed the owner IDs to the API and mDNS
allows users to see which units have already been set up with owner during
the setup process
2017-07-06 11:25:30 -06:00
tigerbot e62869b661 moved owner storage to a separate file 2017-07-06 11:01:29 -06:00
tigerbot a4aad3184a allow loopback to use providers that are not oauth3.org 2017-06-27 10:39:59 -06:00
tigerbot f37730c97d changed loopback endpoint to check all ports 2017-06-27 10:34:52 -06:00
tigerbot 000d36e76a exposed a loopback test route in the api 2017-06-26 11:34:42 -06:00
tigerbot caa7b343d4 improved extraction of properties from TLS sockets 2017-06-26 11:27:54 -06:00
tigerbot 2b70001309 added API route to start/stop a socks5 proxy server 2017-06-26 11:27:54 -06:00
tigerbot aea4725fb0 simplified adding new com.daplie.goldilocks apis 2017-06-26 11:27:54 -06:00
tigerbot 403ec90c2d misc small fixes 2017-06-23 17:47:04 -06:00
tigerbot 3ac0f3077e fixed bug not being able to discover azp 2017-06-23 17:22:45 -06:00
tigerbot 7a2f0f0984 fixed bug saving tunnel tokens 2017-06-21 16:07:48 -06:00
tigerbot fb288bfdbc removed duplication of X-Forwarded header generation 2017-06-16 17:51:03 -06:00
tigerbot 0a0f06094e re-implemented personal mDNS responses 2017-06-16 13:21:20 -06:00
tigerbot 7408db6601 temp disable of multi-domain certificate requests 2017-06-15 16:47:11 -06:00
tigerbot 8fb70564db temp disable of direct mDNS responses 2017-06-15 16:46:41 -06:00
tigerbot 49d5e5296a changed the key used to store tunnel tokens 2017-06-15 14:14:14 -06:00
tigerbot 61018d9303 added tunnel server 2017-06-14 10:58:56 -06:00
tigerbot 30777af804 stopped using `stream-pair` 2017-06-13 14:32:26 -06:00
tigerbot 651e53daf1 fixed crash caused from mistyped url 2017-06-12 11:39:02 -06:00
tigerbot e96ebfc1fc made style worse for consistency 2017-06-09 16:03:12 -06:00
tigerbot d12c06999e implemented syncing config back to the workers 2017-06-09 12:40:39 -06:00
tigerbot cad8dd686e changed UDP servers to reuseAddr 2017-06-09 12:14:25 -06:00
tigerbot f569391cd9 added error handling on http-proxy instance 2017-06-09 11:58:43 -06:00
tigerbot 78da05b630 added way to save POST-ed config 2017-06-09 11:18:05 -06:00
tigerbot ec07b6fcdb added actual port to the mDNS response 2017-06-08 13:21:58 -06:00
tigerbot 027494cd1d fixed the owner not being on stored tunnel tokens 2017-06-08 10:44:22 -06:00
tigerbot 231e54d808 went back to using `http-proxy` for non-websockets
We need to be able to insert `X-Forwarded` header for all the requests on
a TCP keep-alive connection
2017-06-02 18:10:16 -06:00
tigerbot d5dee498f5 made sure the var dir can be created if needed
looks like the var directory is not present when goldilocks is npm installed
2017-06-01 13:06:52 -06:00
tigerbot dda3dffb17 fixed problem creating x-forwarded headers 2017-06-01 11:46:28 -06:00
tigerbot be1a60d2e7 fixed inconsistency in "admin" domain definition 2017-05-31 15:56:28 -06:00
tigerbot 810d0a8e90 mDNS responder now sometimes responds directly 2017-05-30 12:35:29 -06:00
tigerbot 69d7d9e4b8 implemented GET part of the tunnel API 2017-05-30 12:15:19 -06:00
tigerbot d4573994fc added hook to remove tokens from the tunnel 2017-05-29 15:14:37 -06:00
tigerbot 8e2e071abf implemented storage of tunnel tokens 2017-05-29 13:41:09 -06:00
tigerbot d9486b8297 fixed a few problems with our connections 2017-05-29 12:50:29 -06:00
tigerbot be6900cd50 added some error event handlers 2017-05-26 19:28:39 -06:00
tigerbot e259c4d0ce changed method for wrapping socket pre-TLS 2017-05-26 19:18:53 -06:00
tigerbot 509f2f4f4f made the --tunnel option (partially) work 2017-05-26 12:11:39 -06:00
tigerbot 3633c7570b added support for different ACME config for different domains 2017-05-24 18:16:01 -06:00
tigerbot 21a77ad10a added way to specify proxy destination 2017-05-24 13:05:37 -06:00
tigerbot 1e3021c669 added ability to scope config by domain (issue #25) 2017-05-23 18:26:03 -06:00
tigerbot 1f8e44947f added simple mDNS responder 2017-05-23 16:23:43 -06:00
tigerbot 73d3396609 removed some unused file and cleaned package.json
I used git grep to find all require statements coupled with sed, sort and
uniq to create a list of all node modules actually required in our code,
then went through package.json to make the list match our dependencies.
2017-05-23 12:21:24 -06:00
tigerbot 5bbf57a57a tweaked proxy behavior on error/close 2017-05-18 14:14:44 -06:00
tigerbot aa28a72f3f moved HTTP static file detection to net layer 2017-05-18 14:09:02 -06:00
tigerbot dbbae2311c moved HTTP redirection to the net layer 2017-05-18 11:58:10 -06:00
tigerbot 27e818f41a started splitting http handling into multiple servers 2017-05-17 19:16:45 -06:00
tigerbot 47bcdcf2a6 added X-Forwarded header before HTTP proxy 2017-05-17 18:43:44 -06:00
tigerbot df3a818914 reduced code duplication for proxying 2017-05-17 18:00:16 -06:00
tigerbot d25ceadf4a changed how TLS sockets are wrapped 2017-05-17 18:00:06 -06:00
tigerbot febe106a81 changed how HTTP proxying works
Note that with the way it is currently, proxying modules take priority
over other modules even if they come later in the list.
2017-05-16 17:19:26 -06:00
tigerbot 474f9766d8 made `status` optional for redirection 2017-05-16 13:11:27 -06:00
tigerbot d16f857fca implemented HTTP 301 redirect with glob matching 2017-05-16 13:04:08 -06:00
AJ ONeal 0047ae69f4 don't empty the real array, duh 2017-05-16 02:27:33 -05:00
AJ ONeal 3aa1085008 can haz wss 2017-05-16 02:20:02 -05:00
tigerbot 87de2c65ad redirect localhost and IP addresses to real domains 2017-05-11 19:16:23 -06:00
tigerbot 5777a885a4 improved feedback for bad TLS/TCP gateways 2017-05-11 16:42:14 -06:00
tigerbot e24f9412dd improved error handling for TLS/TCP proxying 2017-05-10 17:21:03 -06:00
tigerbot 70e7d57395 added hooks to handle ACME challenges 2017-05-10 16:05:54 -06:00
tigerbot afca49feae moved TLS handling into a separate file 2017-05-10 12:56:47 -06:00
tigerbot 56113cb100 implemented static file serving HTTP module 2017-05-09 16:50:07 -06:00
tigerbot bcba0abddc added error handling when HTTP proxy doesn't connect 2017-05-09 16:23:30 -06:00
tigerbot ab011d1829 cleaned up all of the custom HTTP handling logic 2017-05-09 15:46:49 -06:00
tigerbot ab31bae6ff implemented more dynamic HTTP proxying 2017-05-09 14:16:21 -06:00
tigerbot 99a3de6496 implemented ability to proxy TLS based on SNI 2017-05-08 17:59:45 -06:00
tigerbot f32db19b52 handled case where no TCP modules exist 2017-05-08 17:47:51 -06:00
tigerbot 513e6e8bdd implemented forwarding of TCP based on incoming port 2017-05-08 16:52:37 -06:00
tigerbot 3e1abaddf4 fixed two potential problems on startup 2017-05-08 13:00:45 -06:00
tigerbot 2414163179 converted tabs to spaces in a few files 2017-05-06 12:23:51 -06:00
tigerbot 0a7e70517f implemented UDP forwarding for DNS 2017-05-03 13:55:16 -06:00
tigerbot f4de15b14f added udp capacity to the servers file 2017-05-02 17:48:58 -06:00
tigerbot dbd1e23bfa fixed a few minor things 2017-05-01 17:52:22 -06:00
AJ ONeal aed520a653 get the correct remoteAddress if possible 2017-04-28 13:11:12 -06:00
AJ ONeal eacf2e0dbf made workaround for the TLS issue that I should have ignored... 2017-04-28 13:07:05 -06:00
AJ ONeal f2b05ee7af move owners store out to own object 2017-04-27 19:46:54 -06:00
AJ ONeal c7627faffd rename api to goldilocks 2017-04-27 19:34:13 -06:00
AJ ONeal 0fdd2773b5 prepare to handle tunnel 2017-04-27 19:23:52 -06:00
AJ ONeal 350d87c38d remoteAddress priority... and whitespace... ooops 2017-04-27 17:00:09 -06:00
AJ ONeal 4b470ffe51 admin page now loads properly 2017-04-27 16:50:03 -06:00
AJ ONeal 58a0b592ff admin interface shows up again 2017-04-27 16:27:27 -06:00
AJ ONeal dc55169415 proxy mostly works 2017-04-27 16:05:34 -06:00
AJ ONeal 67aa28aece WIP merging walnut, serve-https, and stunnel.js 2017-04-26 20:16:47 -06:00
AJ ONeal 4267955286 switch over to commander 2017-04-13 17:42:37 -06:00
AJ ONeal 20c7bc977c tunneling tunnels 2017-04-13 16:50:48 -06:00
AJ ONeal 59721582c5 WIP stunnel.js support 2017-04-05 19:02:51 -06:00
AJ ONeal 54a8bc15d9 more network handling stuff 2017-03-18 14:48:49 -06:00
AJ ONeal df8cb8d96f use arrays instead of maps 2017-03-13 16:39:43 -06:00
AJ ONeal 22b7a1b880 more comprehensive data model 2017-03-02 00:58:45 -07:00
AJ ONeal 1cae332c9c began internal initialization API 2017-02-28 14:55:48 -07:00
AJ ONeal 3f56e3a295 first hint of management interface 2017-02-22 18:48:34 -07:00
AJ ONeal f0bea933f9 make -d, pubdir, and public all defaultWebRoot 2017-02-02 17:56:35 -07:00
AJ ONeal 929f555d73 fix bug tunnel bug with --sites 2017-02-01 20:00:00 -07:00
AJ ONeal b9662e3deb add --sites option for multiple domains #10 and use localhost.daplie.me 2017-02-01 15:52:14 -07:00
AJ ONeal 2f04da9bc2 at minimum return raw ws 2017-01-07 17:54:56 -07:00
AJ ONeal 89f26753bf load oauth3 device by devicename 2016-10-19 14:09:10 -06:00
AJ ONeal 62a2f7d44d make it better 2016-10-17 17:40:55 -06:00
AJ ONeal 1d2aa52b02 cleanup to lib/ 2016-10-12 18:23:39 -06:00
AJ ONeal 7634414d82 cleanup to lib/ 2016-10-12 18:22:43 -06:00
AJ ONeal cd2fda3f2b partial tunnel integration 2016-10-11 17:20:10 -06:00
AJ ONeal fa0990b02f add some tunnel support 2016-10-11 13:41:29 -06:00