diff --git a/.env b/.env index e645772..287a30e 100644 --- a/.env +++ b/.env @@ -1,9 +1,9 @@ COMPOSE_PROJECT_NAME=staging NETWORK=staging -FRONT_TAG=master -DOTDOT_TAG=master -LMS_TAG=master +FRONT_TAG=release124 +DOTDOT_TAG=release124 +LMS_TAG=release124 DASHBORD_TAG=master SIGNER_TAG=TD-322 ADMIN_TAG=master diff --git a/configs/cabinet/entrypoint.sh b/configs/cabinet/entrypoint.sh index bc2988a..dce9e53 100755 --- a/configs/cabinet/entrypoint.sh +++ b/configs/cabinet/entrypoint.sh @@ -1,10 +1,19 @@ #!/bin/sh DOMAIN="${DOMAIN:-lmscabinet.dot-dot.ru}" +# API_URL='"API_URL": "https://dot-dot.ru/"' +# d='https://dot-dot.ru/' for x in $(grep -lrw "lmscabinet.dot-dot.ru" .nuxt/);do echo "replace lmscabinet.dot-dot.ru to https://${DOMAIN} in $x" - sed -i -e "s/lmscabinet.dot-dot.ru/${DOMAIN}/g" $x; + sed -i "s|lmscabinet.dot-dot.ru|${DOMAIN}|g" $x; +done + +for x in $(grep -lrw "https://dot-dot.ru" .nuxt/);do + echo "replace https://dot-dot.ru to ${API_URL} in $x" + sed -i "s|https://dot-dot.ru|${API_URL}|g" $x; + # echo "fix double //"; + # sed -i "s|\/\/\|/|g" $x; done "$@" diff --git a/configs/nginx/conf.d/cabinet.conf b/configs/nginx/conf.d/cabinet.conf index 1e31407..40ad346 100644 --- a/configs/nginx/conf.d/cabinet.conf +++ b/configs/nginx/conf.d/cabinet.conf @@ -1,6 +1,6 @@ server { listen 443 ssl ; - server_name stagingcabinet.dot-dot.ru; + server_name testacabinet.dot-dot.ru; ssl_certificate /etc/nginx/ssl/dot2024.crt; ssl_certificate_key /etc/nginx/ssl/dot2024.key;