我对 nginx 以及如何将其配置为运行频道一无所知。我的环境是django 2.x
ubuntu 16
nginx
daphne
redis
digitalocean
我已经修改了我的 nginx 配置文件一个星期,现在无法让我的套接字连接。
nginx config
server {
listen 80;
server_name x.x.x.x;
location = /favicon.ico { access_log off; log_not_found off; }
location /static/ {
alias /home/admin1/myproject/channels-examples/multichat/static/ ;
}
location / {
include proxy_params;
proxy_pass http://unix:/home/admin1/myproject/channels-examples/multichat/multichat.sock
}
}
我将不胜感激任何帮助。