diff options
-rw-r--r-- | .env | 0 | ||||
-rw-r--r-- | README.md | 2 | ||||
-rw-r--r-- | libretranslate.service | 1 |
3 files changed, 2 insertions, 1 deletions
@@ -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 |