appstore-1panel/apps/openresty/1.25.3.1-0-focal/scripts/init.sh
renovate[bot] c3cad9d696
chore(deps): update openresty/openresty docker tag to v1.25.3.1 (#796)
* chore(deps): update openresty/openresty docker tag to v1.25.3.1

* Update app version [skip ci]

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: github-action update-app-version <githubaction@githubaction.com>
2024-02-26 10:51:34 +08:00

10 lines
379 B
Bash

#!/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