server { listen 8900; charset utf-8; location /nginx_status { stub_status on; access_log off; } location / { alias /home/admin/project/examcloud/static/photo-upload/dist/; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; } location ^~ /admin/ { rewrite ^/(.*) /index.html break; root /home/admin/project/examcloud/static/photo-upload/dist/; } location ^~ /api/ecs_core/ { proxy_pass http://basic; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; } location ^~ /api/ecs_exam_work/ { proxy_pass http://examwork; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; } location ^~ /api/ecs_outlet/ { proxy_pass http://exchange; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; } }