diff --git a/nginx.conf b/nginx.conf index 6e414e8..06db783 100644 --- a/nginx.conf +++ b/nginx.conf @@ -15,7 +15,7 @@ http { server { listen 3002; server_name localhost; - set $udsRoot "/Users/teacher/teaching/2020/project"; + set $udsRoot "/Users/teacher/teaching/2020/advance/project"; root $udsRoot; # index.html bootstrap @@ -29,12 +29,13 @@ http { } # index.html bootstrap - location /bootstrap.js { + location /static/ { add_header 'Access-Control-Allow-Origin' '*'; add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS'; add_header 'Access-Control-Allow-Headers' 'DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range'; add_header 'Access-Control-Expose-Headers' 'Content-Length,Content-Range'; - alias "$udsRoot/uds-bootstrap/dist/bootstrap.js"; + alias "$udsRoot/"; + # alias "$udsRoot/bootstrap/dist/index.js"; } error_page 500 502 503 504 /50x.html;