From 81812089f6d28e6cbacd08cc706441f1911e4a15 Mon Sep 17 00:00:00 2001 From: Sam Heinz <54530346+asylumexp@users.noreply.github.com> Date: Sun, 28 Jun 2026 21:28:46 +1000 Subject: [PATCH] hardcode openresty version and build it from website release --- ct/nginxproxymanager.sh | 6 ++++-- install/nginxproxymanager-install.sh | 4 +++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/ct/nginxproxymanager.sh b/ct/nginxproxymanager.sh index 2bcfa34d4..2a1e3ca93 100644 --- a/ct/nginxproxymanager.sh +++ b/ct/nginxproxymanager.sh @@ -60,8 +60,9 @@ function update_script() { fi $STD apt install -y build-essential "$pcre_pkg" libssl-dev zlib1g-dev - if check_for_gh_release "openresty" "openresty/openresty"; then - CLEAN_INSTALL=1 fetch_and_deploy_gh_release "openresty" "openresty/openresty" "prebuild" "${CHECK_UPDATE_RELEASE}" "/opt/openresty" "openresty-*.tar.gz" + OPENRESTY_VERSION="1.29.2.5" + if [[ "$(cat ~/.openresty 2>/dev/null)" != "$OPENRESTY_VERSION" ]]; then + CLEAN_INSTALL=1 fetch_and_deploy_from_url "https://openresty.org/download/openresty-${OPENRESTY_VERSION}.tar.gz" "/opt/openresty" msg_info "Building OpenResty" cd /opt/openresty @@ -77,6 +78,7 @@ function update_script() { --with-stream_ssl_module $STD make -j"$(nproc)" $STD make install + echo "${OPENRESTY_VERSION}" >~/.openresty rm -rf /opt/openresty cat <<'EOF' >/lib/systemd/system/openresty.service [Unit] diff --git a/install/nginxproxymanager-install.sh b/install/nginxproxymanager-install.sh index c3a038b4f..3453619ca 100644 --- a/install/nginxproxymanager-install.sh +++ b/install/nginxproxymanager-install.sh @@ -36,7 +36,8 @@ $STD /opt/certbot/bin/pip install certbot certbot-dns-cloudflare ln -sf /opt/certbot/bin/certbot /usr/local/bin/certbot msg_ok "Set up Certbot" -fetch_and_deploy_gh_release "openresty" "openresty/openresty" "prebuild" "latest" "/opt/openresty" "openresty-*.tar.gz" +OPENRESTY_VERSION="1.29.2.5" +fetch_and_deploy_from_url "https://openresty.org/download/openresty-${OPENRESTY_VERSION}.tar.gz" "/opt/openresty" msg_info "Building OpenResty" cd /opt/openresty @@ -52,6 +53,7 @@ $STD ./configure \ --with-stream_ssl_module $STD make -j"$(nproc)" $STD make install +echo "${OPENRESTY_VERSION}" >~/.openresty rm -rf /opt/openresty cat <<'EOF' >/lib/systemd/system/openresty.service