Add feature: Replace apiURL (in config.yaml) with an external IP address

This commit is contained in:
skiffer-git
2023-07-12 22:07:25 +08:00
parent 62cd1dace0
commit b46f3410ad
3 changed files with 7 additions and 0 deletions
+4
View File
@@ -9,6 +9,10 @@ source .env
echo $MINIO_ENDPOINT
# Replace local IP address with the public IP address in .env file
if [ $API_URL == "http://127.0.0.1:10002/object/" ]; then
sed -i "s/127.0.0.1/${internet_ip}/" .env
fi
if [ $MINIO_ENDPOINT == "http://127.0.0.1:10005" ]; then
sed -i "s/127.0.0.1/${internet_ip}/" .env
fi