This commit is contained in:
ddadmin 2025-08-02 09:07:11 +03:00
parent 20f327e201
commit 6eb09772ae
3 changed files with 9 additions and 9 deletions

4
.env
View File

@ -3,10 +3,10 @@ NETWORK=spottorg
FRONT_TAG=develop
DOTDOT_TAG=develop
LMS_TAG=develop
LMS_TAG=DD-4042-STORY
ADMIN_TAG=master
LANDING_TAG=master
CABINET_TAG=develop
CABINET_TAG=DD-4159
MYSQL_PORT=0.0.0.0:33063
MYSQL_ROOT_PASSWORD=root

View File

@ -1,19 +1,15 @@
#!/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 "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;
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;
done
"$@"

View File

@ -95,6 +95,10 @@ server {
# expires 6M;
}
location /css {
proxy_pass http://static;
}
location /robots.txt {
proxy_pass http://static;
}