let nginx serve static files

This commit is contained in:
Wayne Witzel III
2016-10-18 14:47:14 -04:00
parent 47495b4ea6
commit a27c708127
2 changed files with 7 additions and 5 deletions

View File

@@ -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/;
}
}