From: Arran Cudbard-Bell Date: Sat, 9 Nov 2024 14:57:36 +0000 (-0600) Subject: Output test ports from the openresty-setup script X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c97e9a429bb9a1577a765cc5d33ad087cf5681bc;p=thirdparty%2Ffreeradius-server.git Output test ports from the openresty-setup script --- diff --git a/scripts/ci/openresty-setup.sh b/scripts/ci/openresty-setup.sh index 7d91fd41654..38631db5694 100755 --- a/scripts/ci/openresty-setup.sh +++ b/scripts/ci/openresty-setup.sh @@ -23,6 +23,8 @@ LOGDIR="${BUILDDIR}/logs" CERTDIR="${BUILDDIR}/certs" CERTSRCDIR="${BASEDIR}/raddb/certs" PASSWORD="whatever" +HTTP_PORT=8080 +HTTPS_PORT=8443 # Important files for running openresty CONF="${BUILDDIR}/nginx.conf" @@ -79,7 +81,7 @@ http { sendfile on; server { - listen 8080; + listen ${HTTP_PORT}; server_name localhost; location / { @@ -103,7 +105,7 @@ http { } server { - listen 8443 ssl; + listen ${HTTPS_PORT} ssl; server_name localhost; ssl_certificate ${CERTDIR}/server.pem; @@ -163,4 +165,9 @@ cp "${CIDIR}/openresty/.htpasswd" "${BUILDDIR}" # echo "Starting openresty" openresty -c ${CONF} -p ${BUILDDIR} -echo "Running openresty on port 8080 and 8443, accepting all local connections" +echo "Running openresty on port ${HTTP_PORT} and ${HTTPS_PORT}, accepting all local connections" +cat << EOF +export REST_TEST_SERVER=127.0.0.1 +export REST_TEST_SERVER_PORT=${HTTP_PORT} +export REST_TEST_SERVER_SSL_PORT=${HTTPS_PORT} +EOF