server{
listen 80;
server_name xxx.jeft-hai.top;
root /www/xxx/views/;
index index.html index.htm;
location / {
try_files $uri $uri/ @router;
index index.html;
proxy_pass http://127.0.0.1:4001/;
}
location @router {
rewrite ^.*$ /index.html last;
}
location /users/{
proxy_pass http://127.0.0.1:3000/users/;
}
}