From 15f01061bac4bcca0d0ca6c3fc347e07c8a3f080 Mon Sep 17 00:00:00 2001 From: Hyperling Date: Sat, 26 Jul 2025 12:36:29 -0700 Subject: [PATCH] Move request characters to the env file. --- Config/LibreTranslate/docker-compose.main.yml | 2 +- Config/LibreTranslate/env.example | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Config/LibreTranslate/docker-compose.main.yml b/Config/LibreTranslate/docker-compose.main.yml index 9da0311..61843e8 100644 --- a/Config/LibreTranslate/docker-compose.main.yml +++ b/Config/LibreTranslate/docker-compose.main.yml @@ -34,7 +34,7 @@ services: tty: true healthcheck: test: ['CMD-SHELL', './venv/bin/python scripts/healthcheck.py'] - command: --req-limit 100 --char-limit 2000 + command: --req-limit $REQUESTS --char-limit $CHARACTERS environment: # Allow the saving of API Keys. Requires volume libretranslate_api_keys. - LT_API_KEYS=true diff --git a/Config/LibreTranslate/env.example b/Config/LibreTranslate/env.example index 2222cb6..099ebf0 100644 --- a/Config/LibreTranslate/env.example +++ b/Config/LibreTranslate/env.example @@ -12,6 +12,10 @@ COMPOSE_BAKE=true 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.