Skip to content

fix(docker): 升级 nginx 至 1.30.1 以修复安全漏洞 并添加构建工作流#210

Open
KKKKeybird wants to merge 5 commits into
cym1102:masterfrom
KKKKeybird:master
Open

fix(docker): 升级 nginx 至 1.30.1 以修复安全漏洞 并添加构建工作流#210
KKKKeybird wants to merge 5 commits into
cym1102:masterfrom
KKKKeybird:master

Conversation

@KKKKeybird
Copy link
Copy Markdown

@KKKKeybird KKKKeybird commented May 17, 2026

概要

本 PR 将 Docker 镜像中的 nginx 升级到 Alpine edge/main 中的 1.30.1-r0,并新增 GitHub Actions 工作流,用于自动编译 JAR 和构建 Docker 镜像。

此次升级主要用于修复 nginx 1.30.1 之前版本中存在的高危安全漏洞,同时改善项目的自动化构建流程。
Related to #209

主要修改

  • 新增 JAR 编译工作流
    • 使用 Maven 编译项目
    • 上传 target/nginxWebUI-*.jar 作为构建产物
  • 新增 Docker 镜像构建工作流
    • 下载 JAR 构建产物
    • 使用项目 Dockerfile 构建镜像
    • 支持手动触发构建
  • 将 Docker 镜像中的 nginx 升级到 1.30.1-r0
  • 将可兼容的 nginx-mod-* 动态模块同步固定到 1.30.1-r0
  • 移除 nginx-mod-http-upstream-jdomain
    • Alpine edge 当前没有提供该模块的 1.30.1-r0 版本
    • 若混用旧版本动态模块,可能导致 nginx 启动时报模块 ABI / 版本不兼容错误
  • 其余运行时依赖保持不变

兼容性说明

nginx-mod-http-upstream-jdomain 是一个第三方 nginx 可选模块,主要用于 upstream 域名动态解析。它并不是 nginxWebUI 本体启动所必需的依赖,也不影响常见的反向代理、SSL 证书、静态站点、负载均衡和 stream 转发等功能。

由于 nginx 动态模块通常需要与 nginx 主程序版本保持一致,因此本 PR 选择移除该模块,而不是混用旧版本模块。

测试情况

  • JAR 编译工作流执行成功
  • Docker 镜像构建工作流执行成功
  • Docker 镜像构建成功
  • nginx -v 显示版本为 nginx/1.30.1
  • 容器可正常启动

KKKKeybird and others added 5 commits May 17, 2026 09:33
nginx版本修改为1.30.1-r0
Updated the Docker CI workflow to include steps for building JAR artifacts and handling workflow triggers.
Fix Docker image workflow failure after nginx 1.30.1 upgrade
@KKKKeybird KKKKeybird changed the title fix(docker): 升级 nginx 至 1.30.1 以修复安全漏洞 fix(docker): 升级 nginx 至 1.30.1 以修复安全漏洞 并添加构建工作流 May 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants