fix: 修复 HTTPS 代理 502、转发头与非 root 端口

- https-server.js 改在 res close 且响应未写完时销毁代理请求,避免 Node 24 请求体读完触发 close 导致 502
- 转发请求补齐 X-Forwarded-Proto=https 与 X-Forwarded-For,供 NextAuth 与来源 IP 统计使用
- 内置 HTTPS 默认监听非特权端口 8443,compose 与文档改为宿主 443 映射到容器 8443
- 补充 HTTPS 代理 GET/POST/默认端口集成测试
Refs: https://github.com/margrop/wrong-notebook/issues/159
This commit is contained in:
margrop
2026-12-04 01:31:13 +08:00
parent 810fc1d2d4
commit 45d3ff996d
7 changed files with 188 additions and 12 deletions

View File

@@ -25,7 +25,7 @@ services:
restart: always
ports:
- "80:3000" # HTTP(可选)
- "443:443" # HTTPS
- "443:8443" # HTTPS(容器内非特权端口)
environment:
# === 必须配置(请修改) ===
# 替换为你的实际访问地址