fix(web): 关注我们图片多 URL 回退(public→promotion),移除部署路径提示;Nginx 增加 /social/

Made-with: Cursor
This commit is contained in:
whm
2026-03-22 01:15:20 +08:00
parent 66b873d0b0
commit 5ff300d0f7
6 changed files with 76 additions and 28 deletions

View File

@@ -25,6 +25,11 @@ server {
try_files $uri =404;
}
location ^~ /social/ {
alias /var/www/yh-public/social/;
add_header Cache-Control "public, max-age=300";
}
location ^~ /promotion/ {
try_files $uri =404;
add_header Cache-Control "public, max-age=86400";