главная|main page

состояние|status

журнал|journal

файлы|files

программы|software

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArgos Open Tech <48267258+argosopentech@users.noreply.github.com>2024-12-22 09:16:02 -0500
committerGitHub <noreply@github.com>2024-12-22 09:16:02 -0500
commit553e884a45de6f67fb842dd281c662db1000cce3 (patch)
treeb320d971dabdad9e084ebba27c31fddf20e4a2a4
parentb82448f8ea3a8ad37ff180ab78b8ec8dad0d2e53 (diff)
parentf9e7c605d79d9f7089682d61e12f3a22429fe4d6 (diff)
Merge pull request #28 from lotigara/patch-1
Add environment file
-rw-r--r--.env0
-rw-r--r--README.md2
-rw-r--r--libretranslate.service1
3 files changed, 2 insertions, 1 deletions
diff --git a/.env b/.env
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/.env
diff --git a/README.md b/README.md
index e5d032e..3535967 100644
--- a/README.md
+++ b/README.md
@@ -49,4 +49,4 @@ sudo systemctl status libretranslate
#### Configuration
1. Find the setting you would like to change in the [LibreTranslate settings](https://github.com/LibreTranslate/LibreTranslate#arguments)
-2. Add the setting to the environment of your libretranslate.service SystemD file
+2. Add the setting to the `.env` file
diff --git a/libretranslate.service b/libretranslate.service
index d422ccb..1e28adf 100644
--- a/libretranslate.service
+++ b/libretranslate.service
@@ -8,6 +8,7 @@ Group=www-data
WorkingDirectory=/home/libretranslate/LibreTranslate
Environment="PATH=/home/libretranslate/LibreTranslate/env/bin"
ExecStart=/home/libretranslate/LibreTranslate/env/bin/gunicorn --workers 3 --bind unix:libretranslate.sock -m 007 wsgi:app
+EnvironmentFile=/home/libretranslate/LibreTranslate-init/.env
Restart=always
ExecReload=/bin/kill -s HUP $MAINPID
KillMode=mixed