加固部署配置与敏感路径拦截
Storage Persistence Guard / storage-persistence-audit (pull_request) Has been cancelled

This commit is contained in:
Cheng Zhou
2026-06-22 15:35:48 +08:00
parent ee70531794
commit d23dead775
3 changed files with 28 additions and 4 deletions
+6
View File
@@ -42,6 +42,12 @@ http {
add_header Cache-Control "public, max-age=86400" always;
}
location ~* (^|/)(\.git|\.env($|[./_-])|wp-config\.php|config\.php|database\.yml|backup($|[._/-])) {
access_log off;
log_not_found off;
return 404;
}
location /api/ {
proxy_pass http://backend;
proxy_set_header Host $host;