Skip to content

Commit

Permalink
初始化
Browse files Browse the repository at this point in the history
  • Loading branch information
qixing-ai committed Sep 9, 2024
1 parent 7649cb8 commit 4527833
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions base/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ http {
listen 8081;
server_name localhost;

# 前端静态资源目录
location / {
root /usr/share/nginx/html;
index index.html index.htm;
root /usr/share/nginx/html; # 前端静态文件目录
try_files $uri $uri/ /index.html; # 将未找到的文件重定向到 index.html
index index.html index.htm;
}

# 转发 API 请求到后端服务
Expand Down

0 comments on commit 4527833

Please sign in to comment.