channels-in-docker
channels-in-docker copied to clipboard
Requested features
I am trying to learn django/docker and want to thank you for the example. Some things I am stumbling on and maybe you would like to add to future versions:
- Serving static files (For some reason I find this extremely difficult using Django).
- Configuring this example to run with nginx.
Thanks again!
Hi :)
I'm not sure if adding these two would distract a bit too much from what this sample project is all about: describing a simple channels setup and the main differences between production and development here.
Setting up nginx is simply adding another container that proxies all requests going to Django using the proxy_pass directive. Serving files esp. in production is basically just picking one folder that nginx should serve directly and doing that :)
Out of these two, I might still add an example for nginx as websockets require some extra flags to allow HTTP connection upgrades. So that might make its way in here, file serving is probably a bit too off-topic for this sample project.