diff options
author | Wayne Witzel III <wayne@riotousliving.com> | 2016-10-18 20:47:14 +0200 |
---|---|---|
committer | Wayne Witzel III <wayne@riotousliving.com> | 2016-10-18 20:52:10 +0200 |
commit | a27c70812703caa368751d1a8d0e2c08b5941a68 (patch) | |
tree | 6dfb2205b42f1da361ee4c522e71b7e4e1347ed0 /tools | |
parent | fix mime type issues (diff) | |
download | awx-a27c70812703caa368751d1a8d0e2c08b5941a68.tar.xz awx-a27c70812703caa368751d1a8d0e2c08b5941a68.zip |
let nginx serve static files
Diffstat (limited to 'tools')
-rw-r--r-- | tools/docker-compose/nginx.vh.default.conf | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/tools/docker-compose/nginx.vh.default.conf b/tools/docker-compose/nginx.vh.default.conf index 345d82e706..99c776fcd3 100644 --- a/tools/docker-compose/nginx.vh.default.conf +++ b/tools/docker-compose/nginx.vh.default.conf @@ -19,6 +19,12 @@ server { ssl_protocols TLSv1 TLSv1.1 TLSv1.2; ssl_ciphers HIGH:!aNULL:!MD5; + location /static/ { + root /tower_devel; + try_files /awx/ui /awx/static /awx/public/static =404; + access_log off; + } + location /websocket { # Pass request to the upstream alias proxy_pass http://daphne; @@ -45,8 +51,4 @@ server { include /etc/nginx/uwsgi_params; uwsgi_pass uwsgi; } - - location /static/ { - root /tower_devel/awx/ui/; - } } |