Replies: 3 comments 1 reply
-
After poking about in the code, I see RSGI has a |
Beta Was this translation helpful? Give feedback.
-
🤔 why can't you just keep your setup the same also with Granian? You can switch from whatever server you use with nginx and your code can still return the As for RSGI, Django doesn't support that, so it's not really an option IMHO. |
Beta Was this translation helpful? Give feedback.
-
I would, and I think this is a common need, like to simplify how my python apps are deployed. I deploy to a k8s cluster, building my app in a docker image. Currently, to do this correctly you need:
My hope is that with Granian I could have
For non streaming responses from django, it would seem like a simple shim between the WSGI django app to RSGI would work. |
Beta Was this translation helpful? Give feedback.
-
I have a number of self hosted projects where I would like to serve large media files, but only to authenticated users. If this was a large website I would reach for something like AWS S3 with timed access tokens, but I want all the files locally. If I where to put nginx in front of my python site I would use X-Accel so that my python code could assure that the user has access, then allow nginx to copy the file to the socket.
This would be great for my applications I want to put in docker containers with granian as the only process.
Would there be any interest in a PR that implements this for granian? Thanks!
Beta Was this translation helpful? Give feedback.
All reactions