pub / ktistec-tweaks

Tweaks for the ActivityPub server ktistec
git clone https://src.jayvii.de/pub/ktistec-tweaks.git
Home | Log | Files | Exports | Refs | Submodules | README | RSS

commit 2fd4e8e15078ecfef0faf95c3c4624309cbcc614
parent bd78625ec3c72fc06d1da49d29b073129840e7af
Author: JayVii <jayvii[AT]posteo[DOT]de>
Date:   Mon, 30 Dec 2024 09:59:59 +0100

feat: support translations within the docker container

Diffstat:
MREADME.md | 10++++++++++
Mdocker/docker-compose.yaml | 4++++
2 files changed, 14 insertions(+), 0 deletions(-)

diff --git a/README.md b/README.md @@ -17,6 +17,16 @@ You can run ktistec via the provided docker-compose -f docker-compose.yaml up -d ``` +In order to use +[machine generated translations](https://github.com/toddsundsted/ktistec/?tab=readme-ov-file#configuring-translation), +you can set the `DEEPL_API_KEY` or the `LIBRETRANSLATE_API_KEY` environment +variables while starting up the container: + +```bash + cd docker/ + LIBRETRANSLATE_API_KEY="abcd" docker-compose -f docker-compose.yaml up -d +``` + --- ## CSS diff --git a/docker/docker-compose.yaml b/docker/docker-compose.yaml @@ -24,3 +24,7 @@ services: - /var/www/ktistec/db:/db - /var/www/ktistec/uploads:/uploads - /var/www/ktistec/backups:/backups + + environment: + - LIBRETRANSLATE_API_KEY="${LIBRETRANSLATE_API_KEY:-}" + - DEEPL_API_KEY="${DEEPL_API_KEY:-}"