Commit Graph

47 Commits

Author SHA1 Message Date
Brandon Thomas fa05996e34 clean up response modification 2020-09-13 07:03:01 -04:00
Brandon Thomas f2b0ec1c46 add proxy hostname to response (but this isn't elegant/safe) 2020-09-13 06:37:24 -04:00
Brandon Thomas 77ad6a7e08 Broke OPTION / CORS by not matching on method 2020-09-10 05:21:03 -04:00
Brandon Thomas 8977255088 remove nightly-only build error source; remove unused imports 2020-09-10 04:54:29 -04:00
Brandon Thomas df55d55b84 configurable retry limit and duration 2020-09-10 04:30:11 -04:00
Brandon Thomas e1c39e65de Robust proxying with retry
Also includes upgraded hyper-reverse-proxy, hyper, and futures.

This is looking and feeling way more ergonomic.
2020-09-10 04:18:08 -04:00
Brandon Thomas 74de16f952 if I just read the docs, I would have figured this out sooner :| 2020-09-05 00:46:17 -04:00
Brandon Thomas 625dac6c19 Move speak_proxy forwarding function into module 2020-09-05 00:37:49 -04:00
Brandon Thomas 6c66da2964 add logging to attributes 2020-08-05 01:10:08 -04:00
Brandon Thomas 43599c2a02 add newrelic attribute for speaker 2020-08-05 00:45:56 -04:00
Brandon Thomas 47f4f75eb5 build newrelic libs 2020-08-04 23:36:01 -04:00
Brandon Thomas 6bd56aad75 add newrelic logging capability 2020-08-04 22:26:30 -04:00
Brandon Thomas aeb905357e this should finally report the correct IP 2020-07-01 06:08:06 -04:00
Brandon Thomas 6aef89c6ef debug by printing all headers 2020-07-01 05:46:04 -04:00
Brandon Thomas c7aba90ee9 custom forwarded-for type header 2020-07-01 04:53:43 -04:00
Brandon Thomas e7025d035f confirmed this is correct; no longer need to log 2020-07-01 03:38:16 -04:00
Brandon Thomas 0fda9f97c3 cleanup stale comments, add debug statement for IP 2020-07-01 03:22:57 -04:00
Brandon Thomas ae060729dc add proxy healthcheck endpoint 2020-06-30 06:51:35 -04:00
Brandon Thomas 801304adde bind 0.0.0.0 2020-06-30 06:21:36 -04:00
Brandon Thomas 7e4d5f375d add debugging to catch-all route 2020-06-30 06:10:20 -04:00
Brandon Thomas 7455e51148 populate 'forwarded' header as well 2020-06-30 00:11:42 -04:00
Brandon Thomas 4a5ec4bdba add proxy config to docker, fix IP x-forwarded-for 2020-06-29 23:56:26 -04:00
Brandon Thomas b50f84c280 always fall back to default host 2020-06-29 22:59:05 -04:00
Brandon Thomas e850941f40 Working proxy design 2020-06-29 22:54:05 -04:00
Brandon Thomas 96e900457e cleanup default routing 2020-06-29 20:12:07 -04:00
Brandon Thomas 8238977553 Copy entire body too, and remove header hack 2020-06-29 20:02:32 -04:00
Brandon Thomas b268d98b86 cleanup 2020-06-29 19:42:32 -04:00
Brandon Thomas 649623c39f more efficient header copy 2020-06-29 19:32:57 -04:00
Brandon Thomas 56f707e89b copy (most) headers 2020-06-29 19:29:16 -04:00
Brandon Thomas 48a3e831ea refactor proxying (works!) 2020-06-29 18:58:56 -04:00
Brandon Thomas c89569aa8e Proxying works! 2020-06-29 15:21:20 -04:00
Brandon Thomas cd68e43389 cleanup (still need to pass original request) 2020-06-29 14:56:22 -04:00
Brandon Thomas 663284df87 This decodes the request successfully! 2020-06-29 07:07:19 -04:00
Brandon Thomas 0e2990ee2c This compiles, but isn't logical 2020-06-29 07:03:11 -04:00
Brandon Thomas 09ed0163af WIP: Futures not working 2020-06-29 06:55:24 -04:00
Brandon Thomas aa7345be2d Proxy OPTIONS header 2020-06-29 05:09:22 -04:00
Brandon Thomas 6396b6a690 configure port 2020-06-29 04:24:54 -04:00
Brandon Thomas f6619e5fef add proxy_configs.toml (unread currently) 2020-06-29 04:06:28 -04:00
Brandon Thomas 67d094d38e screw it, install curl with apt 2020-06-29 02:35:39 -04:00
Brandon Thomas dce95dea18 all the libs 2020-06-29 02:24:19 -04:00
Brandon Thomas fc50a06e7f another curl dep 2020-06-29 02:19:24 -04:00
Brandon Thomas 4e97688e9b fix libcurl src 2020-06-29 02:08:10 -04:00
Brandon Thomas 461db14259 Add curl in final image 2020-06-29 01:55:43 -04:00
Brandon Thomas de5a5b0783 Add github workflow and dockerfile 2020-06-29 00:55:15 -04:00
Brandon Thomas d4853707c7 Testing routing 2020-06-29 00:24:14 -04:00
Brandon Thomas 97e94d9e56 This proxy works! 2020-06-28 23:44:16 -04:00
Brandon Thomas 28fee8eee7 initial commit 2020-06-28 22:23:48 -04:00