Adds configuration for the network-ui websocket

* Configures NGINX for the network-ui websocket.
* Configures supervisor.conf for network_ui websocket.
This commit is contained in:
Ben Thomasson
2017-05-03 15:19:12 -04:00
parent 48d801271c
commit 701150bd1a
5 changed files with 9 additions and 4 deletions

View File

@@ -30,7 +30,7 @@ server {
sendfile off;
}
location /websocket {
location ~ ^/(websocket|network_ui) {
# Pass request to the upstream alias
proxy_pass http://daphne;
# Require http version 1.1 to allow for upgrade requests
@@ -90,7 +90,7 @@ server {
sendfile off;
}
location /websocket {
location ~ ^/(websocket|network_ui) {
# Pass request to the upstream alias
proxy_pass http://daphne;
# Require http version 1.1 to allow for upgrade requests

View File

@@ -20,7 +20,7 @@ stdout_logfile=/dev/fd/1
stdout_logfile_maxbytes=0
[program:runworker]
command = python manage.py runworker --only-channels websocket.*
command = python manage.py runworker
autostart = true
autorestart = true
redirect_stderr=true