Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
treexi authored Apr 30, 2024
1 parent 53e6126 commit c1ef3b9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,9 @@ server{
try_files $uri $uri/ @router;
index index.html;
}

location @router {
rewrite ^.*$ /index.html last;
}
location /api/ { #把以api打头的接口转发给后端server
proxy_pass http://127.0.0.1:8085; #这里端口修改为后端服务运行的端口
proxy_set_header Host $host;
Expand Down

0 comments on commit c1ef3b9

Please sign in to comment.