jazzband / django-revproxy

Reverse Proxy view that supports all HTTP methods, Diazo transformations and Single Sign-On.
Mozilla Public License 2.0
297 stars 118 forks source link

Websocket Proxying Support (Django Channels) #122

Open Archmonger opened 3 years ago

Archmonger commented 3 years ago

Would be fantastic if WS proxying was supported, as many Django users have been moving to ASGI webservers.

See asgiproxy for inspiration.

ZipBrandon commented 1 year ago

I'm having a difficult time trying to adapt RevProxy to async. My architecture has Django as the entrypoint into my services to leverage Django's auth and security practices. I proxy my requests to the various services and I am unable to use async and deferments of underlying services because of this. In essence I have created my own GIL :(

My approach has been trying to replace urlib3 with httpx but I get hung up with streaming responses. It would be wonderful if someone more knowledgeable could create working PR!

Archmonger commented 1 year ago

Seems like two people accomplished this with minimal LOCS:

Archmonger commented 12 months ago

Here's a non-django ASGI generic of websocket reverse proxies: https://github.com/valohai/asgiproxy

shicholas commented 5 months ago

Is there a way we can fundraise through @jazzband to get some help here?! Thanks!