From ff05e5b9761a1b983687106a04dce77ed7196590 Mon Sep 17 00:00:00 2001 From: Bibo Hao Date: Sat, 1 Jun 2024 02:44:37 +0800 Subject: [PATCH] add resty built opts --- docker_openresty/work/script-setup-openresty.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docker_openresty/work/script-setup-openresty.sh b/docker_openresty/work/script-setup-openresty.sh index 8674d63..c9bb388 100644 --- a/docker_openresty/work/script-setup-openresty.sh +++ b/docker_openresty/work/script-setup-openresty.sh @@ -1,6 +1,8 @@ source /opt/utils/script-utils.sh setup_openresty() { + # ref: https://github.com/openresty/docker-openresty/blob/master/jammy/Dockerfile + install_apt /opt/utils/install_list_openresty.apt \ && VERSION_OR=$(curl -sL https://github.com/openresty/openresty/releases.atom | grep "releases/tag" | head -1 | grep -Po '(\d[\d|.]+)') \ && URL_OR="https://openresty.org/download/openresty-${VERSION_OR}.tar.gz" \ @@ -25,13 +27,16 @@ setup_openresty() { --user=nginx \ --group=nginx \ --with-compat \ + --with-file-aio \ --with-threads \ --with-http_addition_module \ --with-http_auth_request_module \ --with-http_dav_module \ --with-http_flv_module \ + --with-http_geoip_module=dynamic \ --with-http_gunzip_module \ --with-http_gzip_static_module \ + --with-http_image_filter_module=dynamic \ --with-http_mp4_module \ --with-http_random_index_module \ --with-http_realip_module \ @@ -41,12 +46,17 @@ setup_openresty() { --with-http_stub_status_module \ --with-http_sub_module \ --with-http_v2_module \ + --with-http_v3_module \ + --with-http_xslt_module=dynamic \ --with-mail \ --with-mail_ssl_module \ --with-stream \ --with-stream_realip_module \ --with-stream_ssl_module \ --with-stream_ssl_preread_module \ + --with-ipv6 \ + --with-md5-asm \ + --with-sha1-asm \ && make -j8 && make install \ && ln -sf ${NGINX_HOME}/bin/nginx /usr/bin/ \ && echo "@ Version info of Nginx: $(nginx -version)"