Deploying django, channels and websockets with nginx and daphne

Francis Daly francis at daoine.org
Wed Feb 26 23:39:19 UTC 2020


On Wed, Feb 26, 2020 at 05:55:02PM -0500, Larry Martell wrote:

Hi there,

> upstream django {
>         server unix:/run/daphne/devAppReporting.sock;
> }
> 
> server {
>         listen 8090;

>         location / {
>             proxy_pass http://0.0.0.0:8090;

Changing that to "proxy_pass http://django;" is probably the best
first step.

Maybe there won't need to be a second step!

Cheers,

	f
-- 
Francis Daly        francis at daoine.org


More information about the nginx mailing list