NGINX 1.31.5 Mainline RPM 和 DEB 软件包已发布,支持 HTTP/3、Brotli、TLS 1.3 和 OpenSSL 4.0.2,适用于 EL7/EL8/EL9/EL10, Ubuntu 22.04/24.04

nginx 1.31.5 Mainline 已新增到 CodeIT 仓库,支持 HTTP/3。http2 和 ngx_cache_purge 已内置,并且 OpenSSL 动态链接官方 OpenSSL 4.0.2,支持 QUIC。Google 的 Brotli 压缩模块和 ngx_http_geoip2 以动态模块形式提供,位于 nginx-module-brotli 和 nginx-module-geoip2 软件包中,nginx rpm 会自动安装它们(保留该依赖是为了让现有安装在升级时不丢失相关指令;几个月后我们会移除它,这两个模块将变为完全可选)。这些软件包适用于 RHEL、CentOS、AlmaLinux、Rocky Linux 和 Oracle Linux 7、8、9 和 10,以及 Ubuntu 22.04 和 24.04。

其余动态模块单独打包,可按需安装:nginx-module-lua(配合 lua-resty-core 和 lua-resty-lrucache)、nginx-module-acme(自动申请 ACMEv2 证书)、nginx-module-njs、nginx-module-perl、nginx-module-xslt 和 nginx-module-image-filter。每个软件包都会在 /etc/nginx/modules-enabled 中写入自己的 load_module 指令,安装后即可生效,无需手动修改 nginx.conf。Lua 和 ACME 为 EL9、EL10 和 Ubuntu 构建;EL7 改为提供 nginx-module-geoip,而 njs、Perl、XSLT 和 image-filter 仅有 rpm 版本。

同一版本也发布到 Docker Hub 的 codeitus/nginx:镜像基于 AlmaLinux 9,由这些软件包构建,并同时提供 amd64 和 arm64:

  • 最新镜像,来自最后发布的那个分支:docker pull codeitus/nginx
  • 最新的 Mainline 镜像:docker pull codeitus/nginx:mainline
  • 本次发布的确切版本:docker pull codeitus/nginx:1.31.5

HTTP/3 还需要发布 UDP 端口,而不只是 TCP 端口:docker run -d -p 80:80 -p 443:443 -p 443:443/udp codeitus/nginx

主要变更:

  • 功能:控制 API。
  • 功能:谓词位置。
  • 功能:ngx_http_json_module 模块。
  • 功能:”client_body_early_read” 指令。
  • Bugfix:如果在对 HTTP/2 客户端发送响应时使用了带缓冲的 proxy 且发生了错误,工作进程中可能会出现 use-after-free。
  • Bugfix:如果工作进程在进行优雅关闭之前先耗尽了文件描述符,那么工作进程可能不会退出,日志中也可能出现 “accept4() failed (9: Bad file descriptor)” 告警。
  • Bugfix:当参数名过长时,向 FastCGI 和 uwsgi 后端发送的请求会被构造为无效格式。
  • 修复了 HTTP/3、ngx_http_slice_module 和 ngx_http_memcached_module 中的问题。

Leave a Reply

Your email address will not be published. Required fields are marked *