From 7a7a7d055f24f4f98bbb17fb0f480e7ba1062ef3 Mon Sep 17 00:00:00 2001 From: Jakob Ackermann Date: Fri, 9 Feb 2024 15:18:53 +0000 Subject: [PATCH] Merge pull request #16974 from overleaf/jpa-fix-mongo-url-history-v1 [server-ce] use OVERLEAF_MONGO_URL in history-v1 GitOrigin-RevId: 0c3a25d237162f3ad249c0d7f1f508373ce90e51 --- server-ce/config/custom-environment-variables.json | 2 +- server-ce/runit/history-v1-sharelatex/run | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/server-ce/config/custom-environment-variables.json b/server-ce/config/custom-environment-variables.json index e7dfc6a5f3..f666065b4c 100644 --- a/server-ce/config/custom-environment-variables.json +++ b/server-ce/config/custom-environment-variables.json @@ -30,7 +30,7 @@ "zipTimeoutMs": "ZIP_STORE_ZIP_TIMEOUT_MS" }, "mongo": { - "uri": "MONGO_CONNECTION_STRING" + "uri": "OVERLEAF_MONGO_URL" }, "basicHttpAuth": { "password": "STAGING_PASSWORD", diff --git a/server-ce/runit/history-v1-sharelatex/run b/server-ce/runit/history-v1-sharelatex/run index a6be457865..e77b2477d3 100755 --- a/server-ce/runit/history-v1-sharelatex/run +++ b/server-ce/runit/history-v1-sharelatex/run @@ -6,4 +6,4 @@ if [ "$DEBUG_NODE" == "true" ]; then NODE_PARAMS="--inspect=0.0.0.0:30640" fi -MONGO_CONNECTION_STRING=$OVERLEAF_MONGO_URL NODE_CONFIG_DIR=/overleaf/services/history-v1/config exec /sbin/setuser www-data /usr/bin/node $NODE_PARAMS /overleaf/services/history-v1/app.js >> /var/log/sharelatex/history-v1.log 2>&1 +NODE_CONFIG_DIR=/overleaf/services/history-v1/config exec /sbin/setuser www-data /usr/bin/node $NODE_PARAMS /overleaf/services/history-v1/app.js >> /var/log/sharelatex/history-v1.log 2>&1