fix docker部署后刷新页面404

This commit is contained in:
thsrite 2023-07-15 12:40:36 +08:00
parent 9419060b55
commit 996178872a

View File

@ -29,8 +29,8 @@ http {
# 主目录 # 主目录
expires off; expires off;
add_header Cache-Control "no-cache, no-store, must-revalidate"; add_header Cache-Control "no-cache, no-store, must-revalidate";
index index.html;
root /app/public; root /app/public;
try_files $uri $uri/ /index.html;
} }
location /assets { location /assets {