главная|main page

состояние|status

журнал|journal

файлы|files

программы|software

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Davydov <lotigara@lotigara.ru>2024-12-18 21:58:52 +0300
committerIvan Davydov <lotigara@lotigara.ru>2024-12-18 21:58:52 +0300
commitf9e7c605d79d9f7089682d61e12f3a22429fe4d6 (patch)
treee2834b3744d2a33b69166c259116c46d353e3b9b
parentb113c10f95662b29e402b4b10c643ebe7a3238b8 (diff)
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