Rename LibreTranslate files for project consistency.
This commit is contained in:
53
Config/LibreTranslate/example.env
Normal file
53
Config/LibreTranslate/example.env
Normal file
@@ -0,0 +1,53 @@
|
||||
# This file should be renamed '.env' and have any private values modified.
|
||||
|
||||
COMPOSE_BAKE=true
|
||||
|
||||
### Container Specs ###
|
||||
|
||||
## For a small-scale server (such as 1 CPU, 1GB RAM).
|
||||
# CPU=0.25
|
||||
# RAM=640M
|
||||
|
||||
## For a fully capable server.
|
||||
CPU=2.00
|
||||
RAM=4.0G
|
||||
|
||||
# How much the users are able to utilize the server.
|
||||
REQUESTS=100
|
||||
CHARACTERS=2000
|
||||
|
||||
### Languages ###
|
||||
|
||||
## Check for language model updates on each run.
|
||||
UPDATE_MODELS=true
|
||||
|
||||
## Use default behavior of downloading all models.
|
||||
# LANGUAGES=ALL
|
||||
|
||||
## Otherwise set to a comma-separated list to enable only the desired models.
|
||||
LANGUAGES='LT_LOAD_ONLY=en,es,fr,de'
|
||||
|
||||
### API Keys ###
|
||||
|
||||
API_KEYS=true
|
||||
API_KEYS_DB_PATH=/app/db/api_keys.db
|
||||
API_KEYS_DIR=../../Volumes/LibreTranslate/api_keys
|
||||
|
||||
### Models ###
|
||||
|
||||
## Storing models prevents them from needing downloaded each run.
|
||||
## Placing them under Volumes means they will increase backup sizes.
|
||||
|
||||
MODELS_DIR=../../Volumes/LibreTranslate/models
|
||||
|
||||
## Not providing any location puts them in the default Docker /var/ location.
|
||||
# MODELS_DIR=
|
||||
|
||||
## Storing them in /tmp/ will cause them to get reset after reboots, but hides
|
||||
## them from backup type locations such as Volumes/LibreTranslate/ and /var/.
|
||||
## Please see the README for the CRON command related to this setting.
|
||||
# MODELS_DIR=/tmp/LibreTranslate/models
|
||||
|
||||
## Can also place them under /opt/ which may be recommended by FHS standards.
|
||||
## This keeps them from taking up precious RAM / swap if using tmpfs or similar.
|
||||
# MODELS_DIR=/opt/LibreTranslate/models
|
||||
Reference in New Issue
Block a user