Skip to content

Commit c7f76ce

Browse files
authored
Dockerfile: v1.29.4 + clone from the git repository (#178)
Changes with nginx 1.29.4 09 Dec 2025 *) Feature: the ngx_http_proxy_module supports HTTP/2. *) Feature: Encrypted ClientHello TLS extension support when using OpenSSL ECH feature branch; the "ssl_ech_file" directive. Thanks to Stephen Farrell. *) Change: validation of host and port in the request line, "Host" header field, and ":authority" pseudo-header field has been changed to follow RFC 3986. *) Change: now a single LF used as a line terminator in a chunked request or response body is considered an error. *) Bugfix: when using HTTP/3 with OpenSSL 3.5.1 or newer a segmentation fault might occur in a worker process; the bug had appeared in 1.29.1. Thanks to Jan Svojanovsky. *) Bugfix: a segmentation fault might occur in a worker process if the "try_files" directive and "proxy_pass" with a URI were used.
1 parent 8413ac5 commit c7f76ce

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

Dockerfile

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# https://hg.nginx.org/nginx/file/tip/src/core/nginx.h
2-
ARG NGINX_VERSION=1.29.3
1+
# https://github.com/nginx/nginx/blob/master/src/core/nginx.h
2+
ARG NGINX_VERSION=1.29.4
33

4-
# https://hg.nginx.org/nginx/
5-
ARG NGINX_COMMIT=279676b97237
4+
# https://github.com/nginx/nginx/releases
5+
ARG NGINX_COMMIT=c704574
66

77
# https://github.com/google/ngx_brotli
88
ARG NGX_BROTLI_COMMIT=a71f9312c2deb28875acc7bacfdd5695a111aa53
@@ -108,7 +108,6 @@ RUN \
108108
libxslt-dev \
109109
linux-headers \
110110
make \
111-
mercurial \
112111
musl-dev \
113112
ninja \
114113
openssl-dev \
@@ -139,8 +138,10 @@ RUN \
139138
WORKDIR /usr/src/
140139

141140
RUN \
142-
echo "Cloning nginx $NGINX_VERSION (rev $NGINX_COMMIT from 'default' branch) ..." \
143-
&& hg clone -b default --rev $NGINX_COMMIT https://hg.nginx.org/nginx/ /usr/src/nginx-$NGINX_VERSION
141+
echo "Cloning nginx $NGINX_VERSION (rev $NGINX_COMMIT) ..." \
142+
&& git clone https://github.com/nginx/nginx.git /usr/src/nginx-$NGINX_VERSION \
143+
&& cd /usr/src/nginx-$NGINX_VERSION \
144+
&& git reset --hard $NGINX_COMMIT
144145

145146
RUN \
146147
echo "Cloning brotli $NGX_BROTLI_COMMIT ..." \

readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@ docker pull ghcr.io/macbre/nginx-http3:latest
2727

2828
```
2929
$ docker run -it macbre/nginx-http3 nginx -V
30-
nginx version: nginx/1.29.3 (279676b97237)
30+
nginx version: nginx/1.29.4 (c704574)
3131
built by gcc 13.2.1 20240309 (Alpine 13.2.1_git20240309)
3232
built with OpenSSL 3.3.5 30 Sep 2025
3333
TLS SNI support enabled
3434
configure arguments:
35-
--build=279676b97237
35+
--build=c704574
3636
--prefix=/etc/nginx
3737
--sbin-path=/usr/sbin/nginx
3838
--modules-path=/usr/lib/nginx/modules

0 commit comments

Comments
 (0)