Skip to content

Commit

Permalink
add resty built opts
Browse files Browse the repository at this point in the history
  • Loading branch information
haobibo committed May 31, 2024
1 parent e35634d commit ff05e5b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docker_openresty/work/script-setup-openresty.sh
Original file line number Diff line number Diff line change
@@ -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" \
Expand All @@ -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 \
Expand All @@ -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)"
Expand Down

0 comments on commit ff05e5b

Please sign in to comment.