first commit

This commit is contained in:
zch1234qq
2025-10-16 21:24:18 +08:00
commit b9d03d05cc
35 changed files with 10191 additions and 0 deletions

27
nginx.conf Normal file
View File

@ -0,0 +1,27 @@
server {
listen 80;
server_name localhost;
root /usr/share/nginx/html;
index index.html;
# 支持Next.js的路由
location / {
try_files $uri $uri/ /index.html;
}
# 静态文件缓存
location ~* \.(jpg|jpeg|png|gif|ico|css|js)$ {
expires 30d;
add_header Cache-Control "public, no-transform";
}
# 错误页面
error_page 404 /404.html;
error_page 500 502 503 504 /500.html;
# 禁用访问隐藏文件
location ~ /\. {
deny all;
}
}