From 343b246abcb5f90c5e5da9a4729c0f52cd48ef1f Mon Sep 17 00:00:00 2001 From: Tobias <96661824+CrazyWolf13@users.noreply.github.com> Date: Wed, 12 Nov 2025 14:47:17 +0100 Subject: [PATCH] Set DL_API_BASE_URL using the host IP Add API base URL to environment configuration --- install/domain-locker-install.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/install/domain-locker-install.sh b/install/domain-locker-install.sh index ae4bec033..a555b19c9 100644 --- a/install/domain-locker-install.sh +++ b/install/domain-locker-install.sh @@ -23,6 +23,7 @@ msg_info "Building Domain-Locker" cd /opt/domain-locker npm install --legacy-peer-deps export NODE_OPTIONS="--max-old-space-size=8192" +HOST_IP=$(hostname -I | awk '{print $1}') cat </opt/domain-locker.env # Database connection DL_PG_HOST=localhost @@ -31,6 +32,8 @@ DL_PG_USER=$PG_DB_USER DL_PG_PASSWORD=$PG_DB_PASS DL_PG_NAME=$PG_DB_NAME +DL_API_BASE_URL=http://${HOST_IP}:3000 + # Build + Runtime DL_ENV_TYPE=selfHosted NITRO_PRESET=node_server