48 Commits
Author SHA1 Message Date
Brandon Thomas e4ee56e0dc don't build a new response, modify the old one 2020-09-13 07:45:29 -04:00
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