How to bind Daphne on a unix socket? How to bind Daphne on a unix socket? nginx nginx

How to bind Daphne on a unix socket?


The answer was quite simple:

The problem was that I pointed out -b unix:, and the unix: prefix interfered with the work, and, of course, the flag should be set -u

[Unit]Description=daphne daemonAfter=network.target[Service]EnvironmentFile=/var/www/gglobal/.envvarsUser=gglobalGroup=www-dataWorkingDirectory=/var/www/gglobalExecStart=/var/www/venv/bin/daphne -u /var/www/gglobal/gglobal.sock  config.asgi:channel_layer -v2[Install]WantedBy=multi-user.target