Browse Source

Merge pull request #16974 from overleaf/jpa-fix-mongo-url-history-v1

[server-ce] use OVERLEAF_MONGO_URL in history-v1

GitOrigin-RevId: 0c3a25d237162f3ad249c0d7f1f508373ce90e51
Jakob Ackermann 2 years ago
parent
commit
7a7a7d055f

+ 1 - 1
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",

+ 1 - 1
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