chore(compose): web 仅保留 public 挂载,推广走 dist/API;验证仅 yh_nginx

Made-with: Cursor
This commit is contained in:
whm
2026-03-23 17:57:09 +08:00
parent 80176ea6fc
commit 7980c1922a
9 changed files with 10 additions and 26 deletions

View File

@@ -1,16 +1,9 @@
# 供 compose 中 web 容器使用:宿主机挂载 web/dist 与 verify-root仅提供静态与 SPA 回退
# 供 compose 中 web 容器使用:与 deploy/web/default.conf 同步;验证文件仅外层 yh_nginx 处理
server {
listen 80;
root /usr/share/nginx/html;
index index.html;
location ~ ^/[A-Za-z0-9._-]+\.(txt|html|xml)$ {
root /verify-root;
try_files $uri =404;
default_type text/plain;
add_header Cache-Control "no-store";
}
location ^~ /assets/ {
try_files $uri =404;
access_log off;