Complete KTLS integration

This commit is contained in:
iamdoubz committed 2025-07-02 12:25:03 -05:00
1 parent 70b25ee84a
commit b56a250eed
1 file changed
+5 -4
+5 -4
View File
@@ -9,6 +9,7 @@ V_QSSL="3.5.0"
V_MAXM="1.12.2"
V_HEAD="0.38"
USE_KTLS=""
BUILD_INFO="w/GeoIP2,Brotli,H3,Headers-More,Quantum,debug"
BUILDROOT="/home/iamdoubz/Gits/freenginx-custom"
####################################
#### END change these variables ####
@@ -23,7 +24,6 @@ kernelcheck(){
fi
}
check_dir()
{
path=$1
@@ -88,6 +88,7 @@ check_dir()
echo "Enabling KTLS..."
sudo modprobe tls
USE_KTLS=" enable-ktls"
BUILD_INFO="$BUILD_INFO,KTLS"
fi
elif [ $what = "freenginx" ]; then
echo " "
@@ -167,7 +168,7 @@ echo " "
echo " "
echo "Configuring freenginx..."
make clean &>/dev/null
./auto/configure --build="w/GeoIP2,Brotli,H3,Headers-More,Quantum,debug" --prefix=/etc/nginx --sbin-path=/usr/sbin/nginx --modules-path=/usr/lib/nginx/modules --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log \
./auto/configure --build="$BUILD_INFO"" --prefix=/etc/nginx --sbin-path=/usr/sbin/nginx --modules-path=/usr/lib/nginx/modules --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log \
--http-log-path=/var/log/nginx/access.log --pid-path=/var/run/nginx.pid --lock-path=/var/run/nginx.lock --http-client-body-temp-path=/var/cache/nginx/client_temp --http-proxy-temp-path=/var/cache/nginx/proxy_temp \
--http-fastcgi-temp-path=/var/cache/nginx/fastcgi_temp --http-uwsgi-temp-path=/var/cache/nginx/uwsgi_temp --http-scgi-temp-path=/var/cache/nginx/scgi_temp \
--user=nginx --group=nginx --with-compat --with-file-aio --with-threads --with-http_addition_module --with-http_auth_request_module --with-http_dav_module \
@@ -178,9 +179,9 @@ make clean &>/dev/null
--add-module='../ngx-brotli' --add-module='../nginx-geoip2' --add-module="../headers-more-nginx-module-$V_HEAD" \
--with-cc-opt="-g -O2 -ffile-prefix-map=/data/builder/debuild/nginx-$V_NGINX/debian/debuild-base/nginx-$V_NGINX=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fPIC -I../openssl-$V_QSSL/build/include" \
--with-ld-opt="-Wl,-Bsymbolic-functions -flto=auto -ffat-lto-objects -Wl,-z,relro -Wl,-z,now -Wl,--as-needed -pie -L../openssl-$V_QSSL/build/lib" \
--with-debug
--with-debug > config.log
echo " "
make -j8
make -j8 > make.log
echo " "
$BUILDROOT/nginx-release-$V_NGINX/objs/nginx -V
echo " "