This commit is contained in:
Mrhongxing committed 2026-11-12 15:22:56 +08:00
1 parent ce9e7957d0
commit 5b178650da
44 files changed
+1233 -12

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
server {
listen 3000;
server_name localhost;
root /usr/share/nginx/html;
index index.html;
# SPA 路由支持
location / {
try_files $uri $uri/ /index.html;
}
# 缓存静态资源
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ {
expires 1y;
add_header Cache-Control "public, immutable";
}
}