workbuddy.xpcool.com/.workbuddy/tmp/file.xpcool.com.conf

35 lines
1.2 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# file.xpcool.com 文件下载服务HTTPS 反代后端 FileBrowser Quantum(127.0.0.1:10881)
# 仅只读下载(/data/share 以只读方式挂载进容器,写入被文件系统层禁止)
# 2026-09-03 迁移:原版 filebrowser(10880 旧容器 filebrowser) → Quantum v1.5.5(容器 fbq)
# HTTP -> HTTPS 跳转
server {
listen 80;
server_name file.xpcool.com;
return 301 https://$host$request_uri;
}
server {
listen 443 ssl http2;
server_name file.xpcool.com;
ssl_certificate /data/nginx/ssl/file.xpcool.com/file.xpcool.com_bundle.crt;
ssl_certificate_key /data/nginx/ssl/file.xpcool.com/file.xpcool.com.key;
ssl_protocols TLSv1.2 TLSv1.3;
# 大文件下载调优:关闭缓冲让文件流式转发,避免占用过多内存/磁盘临时文件
proxy_buffering off;
proxy_request_buffering off;
proxy_read_timeout 600s;
proxy_send_timeout 600s;
location / {
proxy_pass http://127.0.0.1:10881;
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_set_header X-Auth-Request-Remote-User "";
}
}