Skip to content

Commit 0d8d7f0

Browse files
Update nginx to v1.25.3
Removed the hpack enc patch since push support has been dropped
1 parent 185b32d commit 0d8d7f0

File tree

7 files changed

+30
-1050
lines changed

7 files changed

+30
-1050
lines changed

Dockerfile

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
FROM alpine:3.18
22

3-
ARG NGINX_VERSION=1.25.0
3+
ARG NGINX_VERSION=1.25.3
44

55
COPY patches /tmp/patches
66

@@ -18,17 +18,17 @@ RUN addgroup -S nginx \
1818
cmake \
1919
curl \
2020
git \
21-
perl \
22-
pcre2-dev \
2321
liburing-dev \
2422
linux-headers \
2523
make \
2624
mimalloc2-dev \
25+
pcre2-dev \
26+
perl \
2727
tar \
2828
zlib-dev \
2929
zstd-dev \
3030
&& mkdir -p /usr/src/nginx /etc/ssl /etc/letsencrypt /etc/nginx/sites-enabled \
31-
&& git clone --depth=1 --branch=openssl-3.0.10+quic \
31+
&& git clone --depth=1 --branch=openssl-3.1.4+quic \
3232
https://github.com/quictls/openssl /usr/src/openssl \
3333
&& git clone --depth=1 --shallow-submodules --recursive \
3434
https://github.com/google/ngx_brotli /usr/src/ngx_brotli \
@@ -71,7 +71,6 @@ RUN addgroup -S nginx \
7171
--with-http_slice_module \
7272
--with-http_ssl_module \
7373
--with-http_v2_module \
74-
--with-http_v2_hpack_enc \
7574
--with-http_v3_module \
7675
--without-http_browser_module \
7776
--without-http_empty_gif_module \

README.adoc

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,12 @@ An Arch Linux PKGBUILD is provided as well.
88
* https://github.com/hakasenyang/openssl-patch/blob/master/nginx_io_uring.patch[io_uring support]
99
* https://github.com/hakasenyang/openssl-patch/blob/master/remove_nginx_server_header.patch[no server header]
1010
* https://github.com/cloudflare/sslconfig/blob/master/patches/nginx__dynamic_tls_records.patch[dynamic TLS records]
11-
* https://github.com/centminmod/centminmod/blob/130.00beta01/patches/cloudflare/nginx-1.25.0_http2-hpack.patch[HTTP/2 HPACK]
11+
12+
=== Dynamic modules
13+
14+
* https://github.com/google/ngx_brotli[brotli]
15+
* https://github.com/tokers/zstd-nginx-module[zstd]
16+
* https://github.com/grahamedgecombe/nginx-ct[ct]
17+
* https://github.com/vozlt/nginx-module-vts[vts]
18+
* https://github.com/openresty/memc-nginx-module[memc]
19+
* https://github.com/openresty/redis2-nginx-module[redis2]

arch/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
*.tar.gz
22
*.pkg.*
3+
*.log
34
dhparam.pem
45
openssl/
56
ngx_*/

arch/004-hpack-enc.patch

Lines changed: 0 additions & 1 deletion
This file was deleted.

arch/PKGBUILD

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,28 @@
11
# Maintainer: ObserverOfTime <chronobserver@disroot.org>
22

33
pkgname=nginx-custom
4-
pkgver=1.25.0
4+
pkgver=1.25.3
55
pkgrel=1
66
pkgdesc='Lightweight HTTP server and IMAP/POP3 proxy server (custom build)'
77
arch=(x86_64)
88
url='https://nginx.org'
99
license=(custom)
1010
conflicts=(nginx)
1111
provides=("nginx=${pkgver%+*}")
12-
depends=(pcre2 zlib libxcrypt liburing mimalloc)
12+
depends=(libxcrypt liburing mimalloc pcre2 zlib)
1313
makedepends=(git zstd)
14+
optdependes=(
15+
'brotli: brotli module'
16+
'memcached: memc module'
17+
'redis: redis2 module'
18+
)
1419
backup=(etc/nginx/nginx.conf
1520
etc/nginx/uwsgi_params
1621
etc/nginx/mime.types
1722
etc/nginx/default.vhost
1823
etc/logrotate.d/nginx)
1924
source=(nginx-${pkgver}.tar.gz::https://hg.nginx.org/nginx/archive/release-${pkgver}.tar.gz
20-
git+https://github.com/quictls/openssl#branch=openssl-3.0.10+quic
25+
git+https://github.com/quictls/openssl#branch=openssl-3.1.4+quic
2126
ngx_brotli::git+https://github.com/google/ngx_brotli
2227
ngx_zstd::git+https://github.com/tokers/zstd-nginx-module
2328
ngx_ct::git+https://github.com/grahamedgecombe/nginx-ct
@@ -32,9 +37,8 @@ source=(nginx-${pkgver}.tar.gz::https://hg.nginx.org/nginx/archive/release-${pkg
3237
default.vhost
3338
001-io-uring.patch
3439
002-no-server-header.patch
35-
003-dynamic-tls.patch
36-
004-hpack-enc.patch)
37-
b2sums=('d72941977e4061487b43a206bc7e3b2d9d84ac60c42f792d3adef9ca38139278f68fc2cce6feaf3334f137ff59ed0ea030d2081065ee043cda5edf1cc93cd6b9'
40+
003-dynamic-tls.patch)
41+
b2sums=('613d5ac8acdc7eed02c22b5db66bfd03d76cf0fb8fcfbb80ba904a6b91d1a1f7a2f59cfad0dd3005ec6ba730ea8b7bdb9fc3f0ac9971ab6188118822947b3034'
3842
'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP'
3943
'e5b3af3eba36bac8c281d773cd90efb8de977a1241e246060661d5c1d436d537ff74b03d137a2bb4a7752339e98e9073ab803bc214a84906498f2383ecad07ff'
4044
'5aa8dab4d6517fc09a96f2ced5c85a67a44878da4c5cde1031a089609d3d32505d0cb45e6842a1502cc6f09e03eef08ee0ce6826b73bcfdd8087b0b695f0801c'
@@ -44,8 +48,7 @@ b2sums=('d72941977e4061487b43a206bc7e3b2d9d84ac60c42f792d3adef9ca38139278f68fc2c
4448
'f1d39725a26859bd5a72256e301ce585fee7e6aeba75dcf52328697cb2dac4d7daaabda7f4f148a9401c10208412d4b6b350d73a89bde1e7c24802509e02d87a'
4549
'fd58f913dd397ce7c5bc8af92d8946a48dc0686c7f4879d87b68ccf78950867c7c067060dcfc4f30daadeb81e494cc2bea6e3447637bf198de453daa97a7a533'
4650
'ffe84842a3f5e9db9fef52d5437feb6c278cbb3d20c2d4b4a836feb0475335a0946a2418c53b38f31d428bba7755dbb5c8a5080d5ffdbe8ff1b388e97878c95e'
47-
'7f6364c416676af03f245b3ed978e51e0f62198941d1ee287ffec5a4607e53359172a2bfea29671b5e6ad490ea1ed9129900d6b205251e6a1cdad2887a4bb475'
48-
'20c22df12ad3983424d16668b0cd4d99364be3c1ae9894c3750917cd26ed99659cbbf1fc0d325397f8f88bef56192108b84f64a876c768ff02b595e19a7e3ab1')
51+
'0a3ce87ad3cb3e4d9e569438d0febeb6457abd4f9032191b08f38c84ba5a628a4182541f8573c92187b895ab127ee8ff35e94020455556a320d1f7e270d6e8b1')
4952

5053
prepare() {
5154
msg2 'Updating brotli submodule'
@@ -61,9 +64,6 @@ prepare() {
6164

6265
msg2 'Applying dynamic TLS records patch'
6366
patch --no-backup-if-mismatch -Np1 -i ../003-dynamic-tls.patch
64-
65-
msg2 'Applying HPACK encoding patch'
66-
patch --no-backup-if-mismatch -Np1 -i ../004-hpack-enc.patch
6767
}
6868

6969
build() {
@@ -98,7 +98,6 @@ build() {
9898
--with-http_slice_module \
9999
--with-http_ssl_module \
100100
--with-http_v2_module \
101-
--with-http_v2_hpack_enc \
102101
--with-http_v3_module \
103102
--without-http_browser_module \
104103
--without-http_empty_gif_module \
@@ -155,7 +154,7 @@ package() {
155154
install -Dm644 docs/text/LICENSE "$pkgdir"/usr/share/licenses/${pkgname}/LICENSE
156155

157156
for f in objs/ngx_*_module.so; do
158-
install -Dm644 $f "$pkgdir"/var/lib/nginx/modules
157+
install -Dm644 "$f" "$pkgdir"/var/lib/nginx/modules
159158
done
160159

161160
for d in ftdetect ftplugin indent syntax; do

patches/003-dynamic-tls.patch

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -218,10 +218,10 @@ diff --git a/src/http/modules/ngx_http_ssl_module.h b/src/http/modules/ngx_http_
218218
index 26fdccf..b14b52a 100644
219219
--- a/src/http/modules/ngx_http_ssl_module.h
220220
+++ b/src/http/modules/ngx_http_ssl_module.h
221-
@@ -67,6 +67,12 @@ typedef struct {
222-
223-
u_char *file;
224-
ngx_uint_t line;
221+
@@ -62,6 +62,12 @@ typedef struct {
222+
ngx_flag_t stapling_verify;
223+
ngx_str_t stapling_file;
224+
ngx_str_t stapling_responder;
225225
+
226226
+ ngx_flag_t dyn_rec_enable;
227227
+ ngx_msec_t dyn_rec_timeout;

0 commit comments

Comments
 (0)