chore: 全量提交(推广页、宣传册、社交资源、视频与后台同步)

Made-with: Cursor
This commit is contained in:
whm
2026-03-20 16:31:12 +08:00
parent 0360ee5261
commit 5067fb6f76
341 changed files with 5283 additions and 108 deletions

View File

@@ -1,16 +1,27 @@
# 与 nginx/web.conf 保持同步compose 挂载到 web 容器
server {
listen 80;
root /usr/share/nginx/html;
index index.html;
# 根路径下的验证文件走热加载目录,替换文件即可生效
# 根路径下的验证文件走热加载目录
location ~ ^/([A-Za-z0-9._-]+\.(txt|html|xml))$ {
alias /verify-root/$1;
}
# 静态资源必须真实存在,避免错误回退成 index.html 导致白屏
location ^~ /assets/ {
try_files $uri =404;
access_log off;
expires 7d;
add_header Cache-Control "public, immutable";
}
location = / {
try_files /index.html =404;
}
# Vue SPA直接访问 /test 等路径须落到 index.html否则会 nginx 404
location / {
try_files $uri $uri/ /index.html;
}