|
@@ -3,19 +3,19 @@ server {
|
|
charset utf-8;
|
|
charset utf-8;
|
|
|
|
|
|
location ^~ / {
|
|
location ^~ / {
|
|
- root ../../teachcloud/web;
|
|
|
|
- try_files $uri $uri/ /index.html;
|
|
|
|
|
|
+ root ../../teachcloud/web;
|
|
|
|
+ try_files $uri $uri/ /index.html;
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
location /static/ {
|
|
location /static/ {
|
|
alias ../../teachcloud/static/;
|
|
alias ../../teachcloud/static/;
|
|
add_header Access-Control-Allow-Origin *;
|
|
add_header Access-Control-Allow-Origin *;
|
|
}
|
|
}
|
|
-
|
|
|
|
- location /mark/ {
|
|
|
|
- alias ../../teachcloud/web/mark/;
|
|
|
|
- index index.html index.htm;
|
|
|
|
- try_files $uri $uri/ /mark/index.html;
|
|
|
|
|
|
+
|
|
|
|
+ location /mark/ {
|
|
|
|
+ alias ../../teachcloud/web/mark/;
|
|
|
|
+ index index.html index.htm;
|
|
|
|
+ try_files $uri $uri/ /mark/index.html;
|
|
}
|
|
}
|
|
|
|
|
|
location ^~ /api/ {
|
|
location ^~ /api/ {
|