Demo: run workerd as an HTTP reverse proxy with socket activation and rootless Podman #3222
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
-
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/
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
A question to the workerd project:
Could this documentation be relevant for
https://github.com/cloudflare/workerd/tree/main/docs
?
If you want I could create a PR (for instance example1 together with the introduction)
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.
Beta Was this translation helpful? Give feedback.
All reactions