Habitica: Fix trusted domains (#6380)

* Fix trusted domains

* Update
This commit is contained in:
Slaviša Arežina 2025-07-30 15:17:24 +02:00 committed by GitHub
parent 2f61a2ffe2
commit 50345c631a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -26,10 +26,12 @@ NODE_VERSION="20" NODE_MODULE="gulp-cli,mocha,npm@10" setup_nodejs
fetch_and_deploy_gh_release "habitica" "HabitRPG/habitica" "tarball" "latest" "/opt/habitica" fetch_and_deploy_gh_release "habitica" "HabitRPG/habitica" "tarball" "latest" "/opt/habitica"
msg_info "Setup ${APPLICATION}" msg_info "Setup ${APPLICATION}"
IPADDRESS=$(hostname -I | awk '{print $1}')
cd /opt/habitica cd /opt/habitica
$STD npm i $STD npm i
$STD npm run postinstall $STD npm run postinstall
cp config.json.example config.json cp config.json.example config.json
sed -i "s/\"TRUSTED_DOMAINS\": \"/&http:\/\/$IPADDRESS:3000,/" config.json
$STD npm run client:build $STD npm run client:build
$STD gulp build:prod $STD gulp build:prod