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
No known key found for this signature in database
GPG Key ID: 5818EF4CC895D5F5
5 changed files with 9 additions and 4 deletions

View File

@ -21,5 +21,5 @@ istanbul:
istanbul instrument --output src-instrumented src
webpack src-instrumented/main.js js/bundle-instrumented.js
cp index.html index-instrumented.html
sed -i "" "s/bundle.js/bundle-instrumented.js/g" index-instrumented.html
sed -i "s/bundle.js/bundle-instrumented.js/g" index-instrumented.html
cp vendor/*.js js/

View File

@ -106,6 +106,9 @@ constantly==15.1.0 # via twisted
cryptography==2.1.4 # via adal, azure-cosmosdb-table, azure-storage-common, pyopenssl, requests, secretstorage
daphne==1.3.0
decorator==4.2.1
dpath==1.4.0
debtcollector==1.15.0 # via oslo.config, oslo.utils, python-designateclient, python-keystoneclient, python-neutronclient
decorator==4.0.11 # via shade
defusedxml==0.4.1 # via python-saml
deprecation==2.0 # via openstacksdk
django-auth-ldap==1.2.8

View File

@ -36,6 +36,8 @@ services:
# Postgres Database Container
postgres:
image: postgres:9.6
ports:
- "5432:5432"
memcached:
image: memcached:alpine
ports:

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