server {
listen 8080;
server_name 127.0.0.1;
location ~/api/ {
rewrite /api/(.*) /$1 break;
proxy_pass http://127.0.0.1:8000;
proxy_set_header Invoke-type ajax;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $host;
proxy_redirect off;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_read_timeout 30s;
}
location / {
root /home/appuser/www/nustant-monitor/ui-server/dist/;
index index.html;
}
location ~/app/ {
root /home/appuser/www/nustant-monitor/app-server/;
index index.html;
}
location /f/bicycle {
alias /home/maxin/to_others/5_bicycle/data/out_image/;
}
location /f/mask {
alias /home/maxin/to_others/7-mask_detection/data/outputs/;
}
location /f/static {
alias /data/www/nustant-monitor/upload/;
}
location /f/trash {
alias /home/maxin/to_others/8-trash_detection/output_videos/;
}
location /f/aisle {
alias /home/maxin/to_others/9-aisle_detection/output_videos/;
}
location /f/video {
alias /data/video/;
}
location /f/pic {
alias /data/www/nustant-monitor/pic/;
}
}