Demo: run workerd
as an HTTP reverse proxy with socket activation and rootless Podman
#24809
eriksjolund
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I wrote a demo that shows how to run a socket-activated workerd container with rootless Podman so that worked acts as an HTTP reverse proxy:
https://github.com/eriksjolund/podman-workerd-socket-activation/
To learn about worked, see Cloudflare blog post.
Probably more HTTP headers should be added. As of now in the demo, only these are set
X-Forwarded-For
req.cf.clientIp
X-Forwarded-Host
url.hostname
I don't know so much about HTTP reverse proxies. If anyone has ideas for improvement of the demo, I would love to hear about it.
I mentioned this demo in the workerd project too:
cloudflare/workerd#3222
Beta Was this translation helpful? Give feedback.
All reactions