daphne

Daphne Django file upload size limitations

蓝咒 提交于 2019-12-11 03:18:45
问题 I am using Daphne for both socket and http connections. I am running 4 worker containers and running everything locally right now in a docker container. My daphne server fails if I try to upload a file that is 400MB. It works fine for small files upto 15MB. My docker container quits with error code 137. I dont get any error in daphne logs. The daphne container just dies but the worker containers keep on running. Does anyone know if there is a way to increase upload limits on daphne or I am

Nginx with Daphne gives 502 Bad Gateway

此生再无相见时 提交于 2019-12-11 00:47:19
问题 I decided to replace uwsgi with daphne since I was having issues with Django Channels and uwsgi. After following this tutorial. I configured my nginx this way in sites-enabled. Most of the other examples I have come across are not using daphne so I could not relate to them. server { # the port your site will be served on listen 80; server_name .MyDomain.com; charset utf-8; # max upload size client_max_body_size 75M; # adjust to taste # Django media location /media { # your Django project's

Running django channels with daphne on systemd

拜拜、爱过 提交于 2019-11-30 16:20:50
First of all, sorry for the long question, I hope a few of you have patience for this. TL; DR: How do I load django settings correctly in systemd? I am following this guide, Deploying Django Channels Using Daphne , so I can run some real-time apps (using WebSockets). Without nginx, and running from the command line the worker (python manage.py runworker) and interface (daphne), I can access the correct channels consumer class, as can be seen in the log below (these were triggered from a javascript client): 2017-10-09 21:10:35,210 - DEBUG - worker - Got message on websocket.connect (reply