feat: LLM 论文图书馆 — 初始提交
- 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)
This commit is contained in:
10
proxy_conf.txt
Normal file
10
proxy_conf.txt
Normal file
@@ -0,0 +1,10 @@
|
||||
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;
|
||||
}
|
||||
Reference in New Issue
Block a user