全项目扫描修复: Docker数据卷修复+安全requireAdmin+12页SEO+API白名单+脚本超时+常量提取+假数据删除

This commit is contained in:
ZhuiGuangAI Dev
2026-06-12 17:27:47 +08:00
parent 464924aea0
commit 4c325c8699
454 changed files with 33647 additions and 980 deletions
+55
View File
@@ -0,0 +1,55 @@
# 追光量化系统 - 前端 Nginx 配置
# 仅内部 HTTP(80),SSL 由 host Nginx 处理
upstream backend {
server backend:7001;
keepalive 32;
}
server {
listen 80;
server_name lh.zhuig.com;
location / {
root /usr/share/nginx/html;
index index.html;
try_files $uri $uri/ /index.html;
expires 1y;
add_header Cache-Control "public, immutable";
location = /index.html {
expires -1;
add_header Cache-Control "no-cache, no-store, must-revalidate";
}
}
location /api {
proxy_pass http://backend;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_connect_timeout 60s;
proxy_send_timeout 120s;
proxy_read_timeout 120s;
proxy_no_cache 1;
proxy_cache_bypass 1;
}
location /health {
proxy_pass http://backend/api/v1/actuator/health;
proxy_http_version 1.1;
proxy_set_header Host $host;
access_log off;
}
gzip on;
gzip_vary on;
gzip_min_length 1024;
gzip_types text/plain text/css text/xml text/javascript application/javascript application/xml+rss application/json;
access_log /var/log/nginx/quant-system.access.log combined;
error_log /var/log/nginx/quant-system.error.log warn;
client_max_body_size 16M;
}