From 587f2edd83da9102f4ab0ecd808443f5faaefdd0 Mon Sep 17 00:00:00 2001 From: kolaente Date: Mon, 4 Oct 2021 20:55:05 +0200 Subject: [PATCH] fix(docker): properly replace api url --- run.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/run.sh b/run.sh index 995ccfca..0af00c2c 100755 --- a/run.sh +++ b/run.sh @@ -12,7 +12,8 @@ echo "Using $VIKUNJA_API_URL as default api url" # 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/http\:\/\/localhost\:3456//g" /usr/share/nginx/html/index.html # replacing in two steps to make sure api urls from releases are properly replaced as well +sed -i "s/'\/api\/v1/'$VIKUNJA_API_URL/g" /usr/share/nginx/html/index.html 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