Option LIVEFLOW_TLS=off pour servir en HTTP derrière un reverse proxy existant

https://claude.ai/code/session_01YHMp3EKzr4s6o8w1ygxuUe
This commit is contained in:
Claude committed 2026-06-12 09:01:26 +00:00
1 parent 71ee13f845
commit 16f41d6303
2 files changed
+11

No files matched your search

+8
View File
@@ -8,6 +8,14 @@ CERT_DIR=${CERT_DIR:-/data/certs}
HOST=${LIVEFLOW_HOST:-localhost}
CERT="$CERT_DIR/cert.pem"
KEY="$CERT_DIR/key.pem"
# LIVEFLOW_TLS=off : servir en HTTP simple, pour les déploiements derrière un
# reverse proxy (Nginx Proxy Manager, SWAG...) qui gère déjà le HTTPS.
if [ "${LIVEFLOW_TLS:-on}" = "off" ]; then
echo "LIVEFLOW_TLS=off : démarrage en HTTP (TLS délégué au reverse proxy)"
exec uvicorn main:app --host 0.0.0.0 --port 8000
fi
mkdir -p "$CERT_DIR"
case "$HOST" in
+3
View File
@@ -19,6 +19,9 @@ services:
environment:
# ← IP (ou nom d'hôte) de votre serveur Unraid, pour le certificat HTTPS
- LIVEFLOW_HOST=192.168.1.16
# "off" si un reverse proxy (Nginx Proxy Manager, SWAG...) gère déjà le
# HTTPS : l'app sert alors du HTTP simple sur le port 8443.
- LIVEFLOW_TLS=on
- ASR_BASE_URL=http://asr:8000/v1
- ASR_MODEL=Qwen/Qwen3-ASR-1.7B
- ASR_API_KEY=sk-local