From 8e3dd9026f399674beaf101faa73f9f5224fa3f8 Mon Sep 17 00:00:00 2001 From: VirtuBox Date: Fri, 6 Dec 2024 17:20:11 +0100 Subject: [PATCH] Fix nginx patch url (#163) * Update blank.yml * Fix build on Ubuntu 24.04 LTS * Fix Ubuntu 24.04 build * Update nginx versions * Fix CI * Fix CI * Fix CI * Add tests.sh * Fix CI * Fix env bash * Fix CI * test CI * test CI * Update blank.yml * Fix CI * Fix ci * Fix ci * Fix ci * Fix patch url * Fix patch version --- nginx-build.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/nginx-build.sh b/nginx-build.sh index a445bf5..38a5ecb 100755 --- a/nginx-build.sh +++ b/nginx-build.sh @@ -234,10 +234,8 @@ fi if [ "$NGINX_RELEASE" = "2" ]; then NGINX_VER="$NGINX_STABLE" - NGX_QUIC="--with-http_v3_module" else NGINX_VER="$NGINX_MAINLINE" - NGX_QUIC="--with-http_v3_module" fi ################################## @@ -715,7 +713,11 @@ _patch_nginx() { echo -ne ' Applying nginx patches [..]\r' { - curl -sL https://raw.githubusercontent.com/kn007/patch/master/nginx_dynamic_tls_records.patch | patch -p1 + if [ "$NGINX_RELEASE" = "2" ]; then + curl -sL https://raw.githubusercontent.com/kn007/patch/e2fcf45e320bb8317042b6796b8f9dd42ffdb25c/nginx_dynamic_tls_records.patch | patch -p1 + else + curl -sL https://raw.githubusercontent.com/kn007/patch/refs/heads/master/nginx_dynamic_tls_records.patch | patch -p1 + fi } >>/tmp/nginx-ee.log 2>&1 }; then @@ -818,7 +820,7 @@ _configure_nginx() { $NGX_USER \ --with-file-aio \ --with-threads \ - $NGX_QUIC \ + --with-http_v3_module \ --with-http_v2_module \ --with-http_ssl_module \ --with-pcre-jit \