Skip to content

Commit 1a056f5

Browse files
committed
split nginx patches and add aws-lc-ech patch and patch to force enable mptcp
1 parent 50900cd commit 1a056f5

6 files changed

Lines changed: 679 additions & 56 deletions

Dockerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,11 @@ RUN git clone --depth 1 https://github.com/nginx/nginx --branch "$NGINX_VER" /sr
4949
git apply /src/nginx/3.patch && \
5050
wget -q https://raw.githubusercontent.com/zlib-ng/patches/refs/heads/master/nginx/"$ZNP_VER"-zlib-ng.patch -O /src/nginx/4.patch && \
5151
git apply /src/nginx/4.patch && \
52-
git apply /src/nginx.patch && \
52+
git apply /src/nginx-footer.patch && \
53+
git apply /src/nginx-buffer-log.patch && \
54+
# git apply /src/nginx-multipath-tcp.patch && \
55+
git apply /src/nginx-cert-compression-brotli-zlib-ng.patch && \
56+
git apply /src/nginx-ech-boringssl-awslc.patch && \
5357
\
5458
git clone --depth 1 https://github.com/google/ngx_brotli --branch "$NB_VER" /src/ngx_brotli && \
5559
cd /src/ngx_brotli && \

patches/nginx-buffer-log.patch

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
diff --git a/src/http/ngx_http_core_module.c b/src/http/ngx_http_core_module.c
2+
index c75ddb849..0d6f2f0f1 100644
3+
--- a/src/http/ngx_http_core_module.c
4+
+++ b/src/http/ngx_http_core_module.c
5+
@@ -1346,7 +1346,7 @@ ngx_http_update_location_config(ngx_http_request_t *r)
6+
r->request_body_file_log_level = NGX_LOG_NOTICE;
7+
8+
} else {
9+
- r->request_body_file_log_level = NGX_LOG_WARN;
10+
+ r->request_body_file_log_level = NGX_LOG_NOTICE;
11+
}
12+
13+
r->request_body_in_single_buf = clcf->client_body_in_single_buffer;
14+
diff --git a/src/http/ngx_http_upstream.c b/src/http/ngx_http_upstream.c
15+
index 74042b5ec..ae9ed01d7 100644
16+
--- a/src/http/ngx_http_upstream.c
17+
+++ b/src/http/ngx_http_upstream.c
18+
@@ -3496,7 +3496,7 @@ ngx_http_upstream_send_response(ngx_http_request_t *r, ngx_http_upstream_t *u)
19+
#endif
20+
21+
} else {
22+
- p->temp_file->log_level = NGX_LOG_WARN;
23+
+ p->temp_file->log_level = NGX_LOG_NOTICE;
24+
p->temp_file->warn = "an upstream response is buffered "
25+
"to a temporary file";
26+
}

patches/nginx.patch renamed to patches/nginx-cert-compression-brotli-zlib-ng.patch

Lines changed: 0 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -254,58 +254,3 @@ index d86ffb8da..fb1bae4bd 100644
254254
extern int ngx_ssl_client_hello_arg_index;
255255

256256

257-
diff --git a/src/http/ngx_http_core_module.c b/src/http/ngx_http_core_module.c
258-
index c75ddb849..0d6f2f0f1 100644
259-
--- a/src/http/ngx_http_core_module.c
260-
+++ b/src/http/ngx_http_core_module.c
261-
@@ -1346,7 +1346,7 @@ ngx_http_update_location_config(ngx_http_request_t *r)
262-
r->request_body_file_log_level = NGX_LOG_NOTICE;
263-
264-
} else {
265-
- r->request_body_file_log_level = NGX_LOG_WARN;
266-
+ r->request_body_file_log_level = NGX_LOG_NOTICE;
267-
}
268-
269-
r->request_body_in_single_buf = clcf->client_body_in_single_buffer;
270-
diff --git a/src/http/ngx_http_special_response.c b/src/http/ngx_http_special_response.c
271-
index eaf42e399..67a6bf375 100644
272-
--- a/src/http/ngx_http_special_response.c
273-
+++ b/src/http/ngx_http_special_response.c
274-
@@ -19,21 +19,21 @@ static ngx_int_t ngx_http_send_refresh(ngx_http_request_t *r);
275-
276-
277-
static u_char ngx_http_error_full_tail[] =
278-
-"<hr><center>" NGINX_VER "</center>" CRLF
279-
+"<hr>" CRLF
280-
"</body>" CRLF
281-
"</html>" CRLF
282-
;
283-
284-
285-
static u_char ngx_http_error_build_tail[] =
286-
-"<hr><center>" NGINX_VER_BUILD "</center>" CRLF
287-
+"<hr>" CRLF
288-
"</body>" CRLF
289-
"</html>" CRLF
290-
;
291-
292-
293-
static u_char ngx_http_error_tail[] =
294-
-"<hr><center>nginx</center>" CRLF
295-
+"<hr>" CRLF
296-
"</body>" CRLF
297-
"</html>" CRLF
298-
;
299-
diff --git a/src/http/ngx_http_upstream.c b/src/http/ngx_http_upstream.c
300-
index 74042b5ec..ae9ed01d7 100644
301-
--- a/src/http/ngx_http_upstream.c
302-
+++ b/src/http/ngx_http_upstream.c
303-
@@ -3496,7 +3496,7 @@ ngx_http_upstream_send_response(ngx_http_request_t *r, ngx_http_upstream_t *u)
304-
#endif
305-
306-
} else {
307-
- p->temp_file->log_level = NGX_LOG_WARN;
308-
+ p->temp_file->log_level = NGX_LOG_NOTICE;
309-
p->temp_file->warn = "an upstream response is buffered "
310-
"to a temporary file";
311-
}

0 commit comments

Comments
 (0)