Skip to content

Commit 5aeb235

Browse files
authored
Fix APP_URL (#8244)
1 parent 1ae9543 commit 5aeb235

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

install/docmost-install.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ $STD apt install -y \
2020
make
2121
msg_ok "Installed Dependencies"
2222

23+
HOST_IP=$(hostname -I | awk '{print $1}')
2324
NODE_VERSION="22" NODE_MODULE="pnpm@$(curl -s https://raw.githubusercontent.com/docmost/docmost/main/package.json | jq -r '.packageManager | split("@")[1]')" setup_nodejs
2425
PG_VERSION="16" setup_postgresql
2526
fetch_and_deploy_gh_release "docmost" "docmost/docmost"
@@ -50,6 +51,7 @@ sed -i -e "s|APP_SECRET=.*|APP_SECRET=$(openssl rand -base64 32 | tr -dc 'a-zA-Z
5051
-e "s|FILE_UPLOAD_SIZE_LIMIT=.*|FILE_UPLOAD_SIZE_LIMIT=50mb|" \
5152
-e "s|DRAWIO_URL=.*|DRAWIO_URL=https://embed.diagrams.net|" \
5253
-e "s|DISABLE_TELEMETRY=.*|DISABLE_TELEMETRY=true|" \
54+
-e "s|APP_URL=.*|APP_URL=http://$HOST_IP:3000|" \
5355
/opt/docmost/.env
5456
export NODE_OPTIONS="--max-old-space-size=2048"
5557
$STD pnpm install

0 commit comments

Comments
 (0)