diff --git a/infra/deploy/nginx.conf.template b/infra/deploy/nginx.conf.template index 400111d..6afec06 100644 --- a/infra/deploy/nginx.conf.template +++ b/infra/deploy/nginx.conf.template @@ -26,6 +26,11 @@ server { root /usr/share/nginx/html/viewer; index index.html; + # 跳转一律发相对 Location(absolute_redirect 默认 on 会按收到的 Host 头 + # 绝对化——经反代丢端口,浏览器跳到无端口的 80;off 后浏览器按当前 + # host:port 补全,2026-09-23 用户报告 32005/ 丢端口即此因)。 + absolute_redirect off; + gzip on; gzip_comp_level 5; gzip_min_length 1024;