From e8384c22198711fa2010e215fa594546be1994f6 Mon Sep 17 00:00:00 2001 From: Thomas <51749973+Thovi98@users.noreply.github.com> Date: Mon, 29 Apr 2024 20:13:58 +0200 Subject: [PATCH] fix services? --- 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 | 2 ++ conf/overleaf-filestore.service | 1 + conf/overleaf-history-v1.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 | 3 ++- 12 files changed, 14 insertions(+), 1 deletion(-) diff --git a/conf/overleaf-chat.service b/conf/overleaf-chat.service index 4144221..467b83e 100644 --- a/conf/overleaf-chat.service +++ b/conf/overleaf-chat.service @@ -8,6 +8,7 @@ User=__APP__ Group=__APP__ WorkingDirectory=__INSTALL_DIR__/ EnvironmentFile=__INSTALL_DIR__/variables.env +Environment="CHAT_HOST=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 diff --git a/conf/overleaf-clsi.service b/conf/overleaf-clsi.service index c91f08a..5695c1c 100644 --- a/conf/overleaf-clsi.service +++ b/conf/overleaf-clsi.service @@ -8,6 +8,7 @@ User=__APP__ Group=__APP__ WorkingDirectory=__INSTALL_DIR__/ EnvironmentFile=__INSTALL_DIR__/variables.env +Environment="CLSI_HOST=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 diff --git a/conf/overleaf-contacts.service b/conf/overleaf-contacts.service index 10b0c39..47094ef 100644 --- a/conf/overleaf-contacts.service +++ b/conf/overleaf-contacts.service @@ -8,6 +8,7 @@ User=__APP__ Group=__APP__ WorkingDirectory=__INSTALL_DIR__/ EnvironmentFile=__INSTALL_DIR__/variables.env +Environment="CONTACTS_HOST=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 diff --git a/conf/overleaf-docstore.service b/conf/overleaf-docstore.service index 58ca48a..4156f05 100644 --- a/conf/overleaf-docstore.service +++ b/conf/overleaf-docstore.service @@ -8,6 +8,7 @@ User=__APP__ Group=__APP__ WorkingDirectory=__INSTALL_DIR__/ EnvironmentFile=__INSTALL_DIR__/variables.env +Environment="DOCSTORE_HOST=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 diff --git a/conf/overleaf-document-updater.service b/conf/overleaf-document-updater.service index 22f8e43..b11fd43 100644 --- a/conf/overleaf-document-updater.service +++ b/conf/overleaf-document-updater.service @@ -8,6 +8,8 @@ User=__APP__ Group=__APP__ WorkingDirectory=__INSTALL_DIR__/ EnvironmentFile=__INSTALL_DIR__/variables.env +Environment="DOCUMENT_UPDATER_HOST=127.0.0.1" +Environment="DOCUPDATER_HOST=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 diff --git a/conf/overleaf-filestore.service b/conf/overleaf-filestore.service index ceb4cd8..11d80dd 100644 --- a/conf/overleaf-filestore.service +++ b/conf/overleaf-filestore.service @@ -8,6 +8,7 @@ User=__APP__ Group=__APP__ WorkingDirectory=__INSTALL_DIR__/ EnvironmentFile=__INSTALL_DIR__/variables.env +Environment="FILESTORE_HOST=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 diff --git a/conf/overleaf-history-v1.service b/conf/overleaf-history-v1.service index bf6e15d..5d1dacc 100644 --- a/conf/overleaf-history-v1.service +++ b/conf/overleaf-history-v1.service @@ -8,6 +8,7 @@ User=__APP__ Group=__APP__ WorkingDirectory=__INSTALL_DIR__/ EnvironmentFile=__INSTALL_DIR__/variables.env +Environment="HISTORY_V1_HOST=127.0.0.1" Environment="MONGO_CONNECTION_STRING=mongodb://127.0.0.1:27017/__DB_NAME__" Environment="NODE_CONFIG_DIR=__INSTALL_DIR__/live/services/history-v1/config" ExecStart=__YNH_NODE__ __INSTALL_DIR__/live/services/history-v1/app.js diff --git a/conf/overleaf-notifications.service b/conf/overleaf-notifications.service index f542fa7..c1ef937 100644 --- a/conf/overleaf-notifications.service +++ b/conf/overleaf-notifications.service @@ -8,6 +8,7 @@ User=__APP__ Group=__APP__ WorkingDirectory=__INSTALL_DIR__/ EnvironmentFile=__INSTALL_DIR__/variables.env +Environment="NOTIFICATIONS_HOST=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 diff --git a/conf/overleaf-project-history.service b/conf/overleaf-project-history.service index 1a04a70..5e37470 100644 --- a/conf/overleaf-project-history.service +++ b/conf/overleaf-project-history.service @@ -8,6 +8,7 @@ User=__APP__ Group=__APP__ WorkingDirectory=__INSTALL_DIR__/ EnvironmentFile=__INSTALL_DIR__/variables.env +Environment="PROJECT_HISTORY_HOST=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 diff --git a/conf/overleaf-real-time.service b/conf/overleaf-real-time.service index 080dced..3f64553 100644 --- a/conf/overleaf-real-time.service +++ b/conf/overleaf-real-time.service @@ -7,6 +7,7 @@ Type=simple User=__APP__ Group=__APP__ WorkingDirectory=__INSTALL_DIR__/ +Environment="REALTIME_HOST=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 diff --git a/conf/overleaf-spelling.service b/conf/overleaf-spelling.service index 53b9a24..a475516 100644 --- a/conf/overleaf-spelling.service +++ b/conf/overleaf-spelling.service @@ -7,6 +7,7 @@ Type=simple User=__APP__ Group=__APP__ WorkingDirectory=__INSTALL_DIR__/ +Environment="SPELLING_HOST=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 diff --git a/conf/overleaf-web.service b/conf/overleaf-web.service index 1ea1e58..4880f73 100644 --- a/conf/overleaf-web.service +++ b/conf/overleaf-web.service @@ -7,7 +7,8 @@ Type=simple User=__APP__ Group=__APP__ WorkingDirectory=__INSTALL_DIR__/ -Environment="LISTEN_ADDRESS=127.0.0.1" +Environment="WEB_HOST=127.0.0.1" +Environment="WEB_API_HOST=127.0.0.1" Environment="WEB_PORT=__PORT__" Environment="MONGO_CONNECTION_STRING=mongodb://127.0.0.1:27017/__DB_NAME__" EnvironmentFile=__INSTALL_DIR__/variables.env