static
This commit is contained in:
parent
5fd346d36f
commit
e424df6312
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user