5 Commits
5 changed files with 20 additions and 11 deletions
+7 -1
View File
@@ -61,4 +61,10 @@ If you choose to load languages individually keep in mind there's no one "langua
## Backups
Backups only preserve API keys for the purpose of ensuring authentication stays consistent across restorations.
Backups only preserve API keys for the purpose of ensuring authentication stays consistent across restorations.
## Further reading
Please refer to https://docs.libretranslate.com/
For an incomplete list of projects that the LibreTranslate API will work with see https://docs.libretranslate.com/guides/integrations/
+2 -1
View File
@@ -1,6 +1,7 @@
#!/bin/bash
export ENTRYPOINT_VERSION=v2
export ENTRYPOINT_VERSION=v6
export PYTHONWARNINGS="ignore"
key_add() {
REQUESTS_PER_MINUTE=${1:-120}
+9 -3
View File
@@ -5,9 +5,13 @@ services:
networks:
- proxy
tty: true
configs:
- source: entrypoint
target: /app/scripts/custom-entrypoint.sh
mode: 0555
secrets:
- source: metrics_auth_token
mode: 0600
mode: 0444
deploy:
restart_policy:
condition: on-failure
@@ -21,7 +25,7 @@ services:
- "traefik.http.middlewares.${STACK_NAME}-redirectscheme.redirectscheme.scheme=https"
- "traefik.http.middlewares.${STACK_NAME}-redirectscheme.redirectscheme.permanent=true"
## When you're ready for release, run "abra recipe sync <name>" to set this
- "coop-cloud.${STACK_NAME}.version=1.0.0+v1.9.6"
- "coop-cloud.${STACK_NAME}.version=1.1.0+v1.9.6"
## Enable backups: https://docs.coopcloud.tech/maintainers/handbook/#how-do-i-configure-backuprestore
- "backupbot.backup=true"
- "backupbot.backup.volumes.libretranslate_api_keys=true"
@@ -31,6 +35,7 @@ services:
timeout: 4s
retries: 4
start_period: 5s
entrypoint: /app/scripts/custom-entrypoint.sh
environment:
- LT_FRONTEND_TITLE=${FRONTEND_TITLE}
- LT_API_KEYS=${API_KEYS}
@@ -40,6 +45,7 @@ services:
- LT_API_KEYS_DB_PATH=/app/db/api_keys.db
- LT_UPDATE_MODELS=true
- LT_LOAD_ONLY=${LANG}
- ARGOS_CHUNK_TYPE=MINISBD
volumes:
- libretranslate_api_keys:/app/db
- libretranslate_models:/home/libretranslate/.local:rw
@@ -61,4 +67,4 @@ volumes:
networks:
proxy:
external: true
external: true
+1 -6
View File
@@ -1,7 +1,5 @@
#!/bin/bash
set -eu
__dirname=$(cd "$(dirname "$0")"; pwd -P)
cd "${__dirname}/.."
@@ -15,6 +13,7 @@ echo ""
echo Booting...
touch /tmp/booting.flag
export PYTHONWARNINGS="ignore"
if [[ -f ./venv/bin/libretranslate ]]; then
LT_POWERCYCLE=1 ./venv/bin/libretranslate "$@"
@@ -51,10 +50,6 @@ else
mkdir -p "$PROMETHEUS_MULTIPROC_DIR"
fi
# Set ARGOS_CHUNK_TYPE to MINISBD if not already defined
if [[ -z "$ARGOS_CHUNK_TYPE" ]]; then
export ARGOS_CHUNK_TYPE=MINISBD
fi
export OMP_NUM_THREADS=1
if [ -f /run/secrets/metrics_auth_token ]; then
+1
View File
@@ -0,0 +1 @@
fixed: warnings cluttering output when attempting to run abra cmd