From 78ec87360ed51fdb4d2360b22f0de1e0cafbe841 Mon Sep 17 00:00:00 2001 From: kolaente Date: Mon, 4 Oct 2021 20:43:43 +0200 Subject: [PATCH] fix(docker): setting nginx run ports --- run.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/run.sh b/run.sh index cee71a50..f6421f89 100755 --- a/run.sh +++ b/run.sh @@ -5,15 +5,15 @@ VIKUNJA_API_URL="${VIKUNJA_API_URL:-"/api/v1"}" VIKUNJA_HTTP_PORT="${VIKUNJA_HTTP_PORT:-80}" -VIKUNJA_HTTPS_PORT="${VIKUNJA_HTTP_PORT:-443}" +VIKUNJA_HTTPS_PORT="${VIKUNJA_HTTPS_PORT:-443}" # Escape the variable to prevent sed from complaining VIKUNJA_API_URL=$(echo $VIKUNJA_API_URL |sed 's/\//\\\//g') sed -i "s/http\:\/\/localhost\:3456\/api\/v1/$VIKUNJA_API_URL/g" /usr/share/nginx/html/index.html -sed -i "s/listen 80/listen $VIKUNJA_HTTP_PORT/g" nginx.conf -sed -i "s/listen 443/listen $VIKUNJA_HTTPS_PORT/g" nginx.conf +sed -i "s/listen 80/listen $VIKUNJA_HTTP_PORT/g" /etc/nginx/nginx.conf +sed -i "s/listen 443/listen $VIKUNJA_HTTPS_PORT/g" /etc/nginx/nginx.conf # Set the uid and gid of the nginx run user usermod --non-unique --uid ${PUID} nginx