channels-in-docker icon indicating copy to clipboard operation
channels-in-docker copied to clipboard

Requested features

Open BrittMcDanel opened this issue 9 years ago • 1 comments

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:

  1. Serving static files (For some reason I find this extremely difficult using Django).
  2. Configuring this example to run with nginx.

Thanks again!

BrittMcDanel avatar Oct 22 '16 20:10 BrittMcDanel

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.

zerok avatar Oct 23 '16 07:10 zerok