From 28b577d41dfa2763dbc5e67228b1a3a0a1830ab8 Mon Sep 17 00:00:00 2001 From: Thomas <51749973+Thovi98@users.noreply.github.com> Date: Thu, 25 Apr 2024 08:10:24 +0200 Subject: [PATCH] Environment="MONGO_CONNECTION_STRING=mongodb://127.0.0.1:27017/__DB_NAME__" --- conf/overleaf-chat.service | 1 + conf/overleaf-clsi.service | 1 + conf/overleaf-contacts.service | 1 + conf/overleaf-docstore.service | 1 + conf/overleaf-document-updater.service | 1 + conf/overleaf-filestore.service | 1 + conf/overleaf-notifications.service | 1 + conf/overleaf-project-history.service | 1 + conf/overleaf-real-time.service | 1 + conf/overleaf-spelling.service | 1 + conf/overleaf-web.service | 1 + 11 files changed, 11 insertions(+) diff --git a/conf/overleaf-chat.service b/conf/overleaf-chat.service index 04881d4..bd68b2a 100644 --- a/conf/overleaf-chat.service +++ b/conf/overleaf-chat.service @@ -9,6 +9,7 @@ Group=__APP__ WorkingDirectory=__INSTALL_DIR__/ EnvironmentFile=__INSTALL_DIR__/variables.env Environment="LISTEN_ADDRESS=127.0.0.1" +Environment="MONGO_CONNECTION_STRING=mongodb://127.0.0.1:27017/__DB_NAME__" ExecStart=__YNH_NODE__ __INSTALL_DIR__/live/services/chat/app.js StandardOutput=append:/var/log/__APP__/chat.log StandardError=inherit diff --git a/conf/overleaf-clsi.service b/conf/overleaf-clsi.service index 02f1c5b..972780b 100644 --- a/conf/overleaf-clsi.service +++ b/conf/overleaf-clsi.service @@ -9,6 +9,7 @@ Group=__APP__ WorkingDirectory=__INSTALL_DIR__/ EnvironmentFile=__INSTALL_DIR__/variables.env Environment="LISTEN_ADDRESS=127.0.0.1" +Environment="MONGO_CONNECTION_STRING=mongodb://127.0.0.1:27017/__DB_NAME__" ExecStart=__YNH_NODE__ __INSTALL_DIR__/live/services/clsi/app.js StandardOutput=append:/var/log/__APP__/clsi.log StandardError=inherit diff --git a/conf/overleaf-contacts.service b/conf/overleaf-contacts.service index 9fb405e..b201c5e 100644 --- a/conf/overleaf-contacts.service +++ b/conf/overleaf-contacts.service @@ -9,6 +9,7 @@ Group=__APP__ WorkingDirectory=__INSTALL_DIR__/ EnvironmentFile=__INSTALL_DIR__/variables.env Environment="LISTEN_ADDRESS=127.0.0.1" +Environment="MONGO_CONNECTION_STRING=mongodb://127.0.0.1:27017/__DB_NAME__" ExecStart=__YNH_NODE__ __INSTALL_DIR__/live/services/contacts/app.js StandardOutput=append:/var/log/__APP__/contacts.log StandardError=inherit diff --git a/conf/overleaf-docstore.service b/conf/overleaf-docstore.service index 5f4c4f1..ec2b019 100644 --- a/conf/overleaf-docstore.service +++ b/conf/overleaf-docstore.service @@ -9,6 +9,7 @@ Group=__APP__ WorkingDirectory=__INSTALL_DIR__/ EnvironmentFile=__INSTALL_DIR__/variables.env Environment="LISTEN_ADDRESS=127.0.0.1" +Environment="MONGO_CONNECTION_STRING=mongodb://127.0.0.1:27017/__DB_NAME__" ExecStart=__YNH_NODE__ __INSTALL_DIR__/live/services/docstore/app.js StandardOutput=append:/var/log/__APP__/docstore.log StandardError=inherit diff --git a/conf/overleaf-document-updater.service b/conf/overleaf-document-updater.service index 4da29fb..a2653e9 100644 --- a/conf/overleaf-document-updater.service +++ b/conf/overleaf-document-updater.service @@ -9,6 +9,7 @@ Group=__APP__ WorkingDirectory=__INSTALL_DIR__/ EnvironmentFile=__INSTALL_DIR__/variables.env Environment="LISTEN_ADDRESS=127.0.0.1" +Environment="MONGO_CONNECTION_STRING=mongodb://127.0.0.1:27017/__DB_NAME__" ExecStart=__YNH_NODE__ __INSTALL_DIR__/live/services/document-updater/app.js StandardOutput=append:/var/log/__APP__/document-updater.log StandardError=inherit diff --git a/conf/overleaf-filestore.service b/conf/overleaf-filestore.service index fc1cf80..4b56d4c 100644 --- a/conf/overleaf-filestore.service +++ b/conf/overleaf-filestore.service @@ -9,6 +9,7 @@ Group=__APP__ WorkingDirectory=__INSTALL_DIR__/ EnvironmentFile=__INSTALL_DIR__/variables.env Environment="LISTEN_ADDRESS=127.0.0.1" +Environment="MONGO_CONNECTION_STRING=mongodb://127.0.0.1:27017/__DB_NAME__" ExecStart=__YNH_NODE__ __INSTALL_DIR__/live/services/filestore/app.js StandardOutput=append:/var/log/__APP__/filestore.log StandardError=inherit diff --git a/conf/overleaf-notifications.service b/conf/overleaf-notifications.service index f0bfade..65d8b0e 100644 --- a/conf/overleaf-notifications.service +++ b/conf/overleaf-notifications.service @@ -9,6 +9,7 @@ Group=__APP__ WorkingDirectory=__INSTALL_DIR__/ EnvironmentFile=__INSTALL_DIR__/variables.env Environment="LISTEN_ADDRESS=127.0.0.1" +Environment="MONGO_CONNECTION_STRING=mongodb://127.0.0.1:27017/__DB_NAME__" ExecStart=__YNH_NODE__ __INSTALL_DIR__/live/services/notifications/app.js StandardOutput=append:/var/log/__APP__/notifications.log StandardError=inherit diff --git a/conf/overleaf-project-history.service b/conf/overleaf-project-history.service index 5fecd35..a5c933b 100644 --- a/conf/overleaf-project-history.service +++ b/conf/overleaf-project-history.service @@ -9,6 +9,7 @@ Group=__APP__ WorkingDirectory=__INSTALL_DIR__/ EnvironmentFile=__INSTALL_DIR__/variables.env Environment="LISTEN_ADDRESS=127.0.0.1" +Environment="MONGO_CONNECTION_STRING=mongodb://127.0.0.1:27017/__DB_NAME__" ExecStart=__YNH_NODE__ __INSTALL_DIR__/live/services/project-history/app.js StandardOutput=append:/var/log/__APP__/project-history.log StandardError=inherit diff --git a/conf/overleaf-real-time.service b/conf/overleaf-real-time.service index de857ae..4560c7c 100644 --- a/conf/overleaf-real-time.service +++ b/conf/overleaf-real-time.service @@ -8,6 +8,7 @@ User=__APP__ Group=__APP__ WorkingDirectory=__INSTALL_DIR__/ Environment="LISTEN_ADDRESS=127.0.0.1" +Environment="MONGO_CONNECTION_STRING=mongodb://127.0.0.1:27017/__DB_NAME__" EnvironmentFile=__INSTALL_DIR__/variables.env ExecStart=__YNH_NODE__ __INSTALL_DIR__/live/services/real-time/app.js StandardOutput=append:/var/log/__APP__/real-time.log diff --git a/conf/overleaf-spelling.service b/conf/overleaf-spelling.service index 44c543c..93b936b 100644 --- a/conf/overleaf-spelling.service +++ b/conf/overleaf-spelling.service @@ -8,6 +8,7 @@ User=__APP__ Group=__APP__ WorkingDirectory=__INSTALL_DIR__/ Environment="LISTEN_ADDRESS=127.0.0.1" +Environment="MONGO_CONNECTION_STRING=mongodb://127.0.0.1:27017/__DB_NAME__" EnvironmentFile=__INSTALL_DIR__/variables.env ExecStart=__YNH_NODE__ __INSTALL_DIR__/live/services/spelling/app.js StandardOutput=append:/var/log/__APP__/spelling.log diff --git a/conf/overleaf-web.service b/conf/overleaf-web.service index b6457f1..646a046 100644 --- a/conf/overleaf-web.service +++ b/conf/overleaf-web.service @@ -8,6 +8,7 @@ User=__APP__ Group=__APP__ WorkingDirectory=__INSTALL_DIR__/ Environment="LISTEN_ADDRESS=127.0.0.1" +Environment="MONGO_CONNECTION_STRING=mongodb://127.0.0.1:27017/__DB_NAME__" Environment="ENABLED_SERVICES="web"" Environment="WEB_PORT="__PORT__"" EnvironmentFile=__INSTALL_DIR__/variables.env