From 6e78988a6a3ad8c1060aa7d91e061f41fe626c70 Mon Sep 17 00:00:00 2001 From: juvdiaz Date: Fri, 29 May 2026 12:05:30 -0600 Subject: [PATCH] Updating translation endpoint so its reachable --- apps/website/Dockerfile | 2 + apps/website/partials/translation_ui.php | 3 +- apps/website/translate.php | 114 +++++++++++++++++++++++ apps/website/translation.js | 29 +++--- apps/website/web-app.yaml | 4 + 5 files changed, 133 insertions(+), 19 deletions(-) create mode 100644 apps/website/translate.php diff --git a/apps/website/Dockerfile b/apps/website/Dockerfile index 206f4f8..1d9803e 100644 --- a/apps/website/Dockerfile +++ b/apps/website/Dockerfile @@ -38,6 +38,8 @@ RUN usermod -u 1000 apache && \ chown -R apache:apache /run/apache2 /var/log/apache2 /tmp/website-lang /var/www/localhost/htdocs/db ENV WEBSITE_LANG_WRITE_DIR=/var/www/localhost/htdocs/db/lang +ENV OLLAMA_HOST=http://192.168.100.68:11434 +ENV OLLAMA_MODEL=llama3.2:3b USER apache diff --git a/apps/website/partials/translation_ui.php b/apps/website/partials/translation_ui.php index 37ddeb8..b27bbd4 100644 --- a/apps/website/partials/translation_ui.php +++ b/apps/website/partials/translation_ui.php @@ -39,8 +39,7 @@