Downloading Translated File via HTTPS Proxy

Author: bbarshawODECreated Apr 28, 2026Updated Aug 7, 2026
Labelspossible bug

On LibreTranslate v1.9.5 using either the provided Docker Compose template YAML or starting up with run.sh via the Docker instructions in the Installation guide I am unable to get the "Download" link working for a translated file in Chrome/Edge (it works in Firefox with http) due to an error of "Mixed Content: The site at '' was loaded over a secure connection, but the file at '<file_url>' was redirected through an insecure connection. This file should be served over HTTPS. See https://blog.chromium.org/2020/02/protecting-users-from-insecure.html for more details." I am using an Apache2 reverse proxy that works fine for serving the website but the Download link generated always results in an http address even though I have tried setting LT_SSL=true, tried with commands=--ssl, and tried from run.sh also using --ssl. If I manually change the link to be https instead of http the file will download just fine. Any ideas on how to force it to use https within the container for the generated Download link?

My apache2.conf proxy config:

    ProxyPreserveHost On
    ProxyPass / http://0.0.0.0:5000/
    ProxyPassReverse / http://0.0.0.0:5000/

My compose.yml:

services: libretranslate: container_name: libretranslate image: libretranslate/libretranslate:latest ports: - "5000:5000" restart: unless-stopped healthcheck: test: ['CMD-SHELL', './venv/bin/python scripts/healthcheck.py'] interval: 10s timeout: 4s retries: 4 start_period: 5s tty: true environment: - LT_UPDATE_MODELS=true - LT_SSL=true # - LT_DEBUG=true volumes: - libretranslate_models:/home/libretranslate/.local:rw volumes: libretranslate_models:

Thanks!

Source: LibreTranslate/LibreTranslate