mirror of
https://github.com/ansible/awx.git
synced 2026-02-19 04:00:06 -03:30
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:
@@ -36,6 +36,8 @@ services:
|
||||
# Postgres Database Container
|
||||
postgres:
|
||||
image: postgres:9.6
|
||||
ports:
|
||||
- "5432:5432"
|
||||
memcached:
|
||||
image: memcached:alpine
|
||||
ports:
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user