This proxy component is part of a series of proxies that are modular in design and require almost zero configuration. The series currently includes an SSL terminator, forward proxy and a caching proxy. Over time, I will add a a rate limiter, a loadbalancer/router, and a CDN proxy/image resizer.
So often I need a forward proxy in my projects. I forward proxy is a middleman between a client server and some api or other resource far away from the client.
Mostly I use nginx for my proxies, but the configuration of the proxies can be tricky and cumbersome. For a simple proxy I'd need to write a project with aDockerFile and configuration, create a docker image, build it and deploy it to some repository like DockerHub or ECR.
And I'd have to think of whether the remote host has SNI ssl certificates, timeouts, whether the client will upload files, and all the pitfalls with it. And maybe the upstream is a load balancer with changing ip addresses, like an AWS ALB. And repeat.
So I decided to create an instantly usable, near zero configuration, forward proxy, that just needs some environment variables to launch: 'FlowForward proxy'.
Launching the proxy is just as easy as this: