- FastAPI 后端: REST API + Bearer Token 鉴权 + PDF 代理 - 180 篇论文数据 (data/papers.json): 9 模块、32 子领域 - 前端: 数据驱动、卡片径向渐变光效、PDF 页面内阅读 - 底部状态栏: arXiv/HF 连通性检测 - PDF 加载: arXiv 优先(5s超时) → HK 本地兜底 - Docker 化部署 (Dockerfile + start.sh + nginx.conf) - arXiv + HF 批量下载器 (api/downloader.py)
11 lines
349 B
Plaintext
11 lines
349 B
Plaintext
location / {
|
|
proxy_pass http://127.0.0.1:8741;
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
|
# 强制 inline 阻止 IDM 弹下载
|
|
add_header Content-Disposition "inline" always;
|
|
add_header X-Content-Type-Options "nosniff" always;
|
|
}
|