v1.0.0 高考志愿门户完整修复

变更摘要:
- [fix] 清理根目录 index.html 遗留代码(questionnaire-error + retryLoad 移除)
- [fix] 副标题同步更新为自估591分 + 候选志愿546条数据校准
- [fix] 页脚注入版本号 v1.0.0
- [fix] 部署版 index.html: 取消家长标签,统一 filler-tianheng
- [fix] Dashboard 文案修正(4份→2份线上问卷)
- [fix] 清理冗余部署脚本(v1-v4归档至 archived_scripts/)
- [fix] 等效位次工具纳入 deploy 目录
- [chore] .gitignore 初始化
- [init] Git 仓库初始化
This commit is contained in:
2026-06-24 13:11:34 +08:00
commit b6df028839
71 changed files with 22898 additions and 0 deletions
+40
View File
@@ -0,0 +1,40 @@
# ============================================================
# Nginx 配置 — 高考志愿家庭门户
# 功能:
# 1. 静态文件服务(HTML 报告 + 导航页)
# 2. /api/ 路径反向代理到 Flask 后端
# ============================================================
server {
listen 80;
server_name _; # 响应所有域名/IP 请求
# 字符集
charset utf-8;
# ---------- 静态文件 ----------
location / {
root /usr/share/nginx/html;
index index.html;
# 尝试直接文件匹配,失败返回 index.html(SPA 风格,这里非必须但无害)
try_files $uri $uri/ /index.html;
}
# ---------- API 反向代理 → Flask ----------
# 所有 /api/ 开头的请求转发到 Flask 后端(容器名 backend:5000
location /api/ {
proxy_pass http://backend:5000;
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;
# 超时设置(问卷提交一般很快,30秒足够)
proxy_connect_timeout 30s;
proxy_read_timeout 30s;
}
# ---------- 禁止访问隐藏文件 ----------
location ~ /\. {
deny all;
}
}