From 5aeb2357686c970fdffef02f25cb6aa50645fea9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Slavi=C5=A1a=20Are=C5=BEina?= <58952836+tremor021@users.noreply.github.com> Date: Fri, 10 Oct 2025 13:39:03 +0200 Subject: [PATCH] Fix APP_URL (#8244) --- install/docmost-install.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/install/docmost-install.sh b/install/docmost-install.sh index ec10cceb2..098d0837c 100644 --- a/install/docmost-install.sh +++ b/install/docmost-install.sh @@ -20,6 +20,7 @@ $STD apt install -y \ make msg_ok "Installed Dependencies" +HOST_IP=$(hostname -I | awk '{print $1}') NODE_VERSION="22" NODE_MODULE="pnpm@$(curl -s https://raw.githubusercontent.com/docmost/docmost/main/package.json | jq -r '.packageManager | split("@")[1]')" setup_nodejs PG_VERSION="16" setup_postgresql 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 -e "s|FILE_UPLOAD_SIZE_LIMIT=.*|FILE_UPLOAD_SIZE_LIMIT=50mb|" \ -e "s|DRAWIO_URL=.*|DRAWIO_URL=https://embed.diagrams.net|" \ -e "s|DISABLE_TELEMETRY=.*|DISABLE_TELEMETRY=true|" \ + -e "s|APP_URL=.*|APP_URL=http://$HOST_IP:3000|" \ /opt/docmost/.env export NODE_OPTIONS="--max-old-space-size=2048" $STD pnpm install