From 26d7a0cd3a807c9972d7dfe00c57df507cd3b36f Mon Sep 17 00:00:00 2001 From: zhengkunwang223 Date: Mon, 4 Sep 2023 15:44:48 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20openresty=20=E5=A2=9E=E5=8A=A0=20init?= =?UTF-8?q?=20=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/openresty/1.21.4.2/scripts/init.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 apps/openresty/1.21.4.2/scripts/init.sh diff --git a/apps/openresty/1.21.4.2/scripts/init.sh b/apps/openresty/1.21.4.2/scripts/init.sh new file mode 100644 index 00000000..dd1465ed --- /dev/null +++ b/apps/openresty/1.21.4.2/scripts/init.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +source ./.env + +sed -i -E "s/(listen[[:space:]]+)(80)([[:space:]]*;)/\1${PANEL_APP_PORT_HTTP}\3/" conf/conf.d/00.default.conf +sed -i -E "s/(listen[[:space:]]+)(443)([[:space:]]+ssl[[:space:]]+http2;)/\1${PANEL_APP_PORT_HTTPS}\3/" conf/conf.d/00.default.conf + +sed -i -E "s/(listen[[:space:]]+)(80)([[:space:]]*;)/\1${PANEL_APP_PORT_HTTP}\3/" conf/conf.d/default.conf +