upstream channels-backend {server localhost:8000;} server { listen 80; server_name 52.77.249.57; location = /favicon.ico { access_log off; log_not_found off; } location / { proxy_pass http://channels-backend; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "Upgrade"; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Host $http_host; proxy_redirect off; } }
[Unit] Description=daphne daemon Requires=daphne.socket After=network.target [Service] Type=simple User=root WorkingDirectory=/home/ubuntu/project ExecStart=/home/ubuntu/project/env/bin/daphne -b 0.0.0.0 -p 8000 chat_service.asgi:application [Install] WantedBy=multi-user.target
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)