Fixes timeout when exporting YAML from network UI

Exporting YAML on dev envs with honcho and in production environments
would timeout.  This was due to daphne handling the export request
in dev but not in production.  This fixes network_ui to use uwsgi instead
of daphne to handle the request.
This commit is contained in:
Ben Thomasson
2018-05-01 17:51:09 -04:00
parent 05556809d3
commit 89cabf7ca0
5 changed files with 17 additions and 12 deletions

View File

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