# Nginx 版本锁定

**URL:** <https://meta.discourse.org/t/nginx-version-pinning/394488>\
**Category:** Bug\
**Created:** [2026年一月27日 22:39 UTC](https://meta.discourse.org/t/nginx-version-pinning/394488 "2026-01-27T22:39:11Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![pacharanero](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pacharanero/32/500583_2.png) [@pacharanero](https://meta.discourse.org/u/pacharanero)\
**Post date:** [2026年一月27日 22:39 UTC](https://meta.discourse.org/t/nginx-version-pinning/394488/1 "2026-01-27T22:39:11Z")

</div>

严格来说不算 #Contribute > Bug（贡献：Bug），但不清楚它应该归入哪个其他类别。这确实是个问题，而且它也不是 #Contribute > Feature（贡献：功能）。可能是 #Support（支持），但我对此相当自信，知道自己在做什么。

参见：3 年前的一篇类似帖子 [Dockerfile in official install instructions uses unsupported version of Nginx](https://meta.discourse.org/t/dockerfile-in-official-install-instructions-uses-unsupported-version-of-nginx/248779)

本周进行的一次常规渗透测试发现，当前使用的 NGINX 版本已停止维护（EOL）。虽然无法利用该漏洞，但它已被标记为需要尽快修复。

尝试通过 `git pull` 更新 Discourse 仍未解决此问题，因为[尽管 Discourse Docker 仓库已更新](https://github.com/discourse/discourse_docker/commit/ddac3562c0dfe2563e7076d0a16d09dd48c86d15)，但模板将基础镜像固定为上一个版本（discourse/base:2.0.20260109-0020）。

有几个问题：

- 为什么固定的 NGINX 版本如此陈旧，以至于已经停止维护？是否有我不了解的考量因素？

- 为什么新版本选择的是 1.28.1 而不是 1.29.4（[截至 2026.01.27 的最新版本](https://endoflife.date/nginx)）——这是否也有其考量？

总体而言，Discourse 似乎非常倾向于让所有用户保持在较新的版本上（这看起来很合理），例如之前的 `tests-passed` 标签。

我该如何更新 NGINX（理想情况下不要通过本地修改）？

---

_[View the full topic](https://meta.discourse.org/t/nginx-version-pinning/394488)._
