This commit is contained in:
2026-02-24 20:05:36 +01:00
parent 9ac9415599
commit e4c437d5c0
2 changed files with 8 additions and 2 deletions

View File

@ -23,6 +23,8 @@ services:
environment: environment:
- OLLAMA_BASE_URL=http://ollama:11434 - OLLAMA_BASE_URL=http://ollama:11434
- WEBUI_SECRET_KEY=${WEBUI_SECRET_KEY:-supersecretkey} - WEBUI_SECRET_KEY=${WEBUI_SECRET_KEY:-supersecretkey}
- WEBUI_URL=http://93.108.34.236
- ENABLE_WEBSOCKETS=True
volumes: volumes:
- webui_data:/app/backend/data - webui_data:/app/backend/data
networks: networks:

View File

@ -9,11 +9,15 @@ server {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Forwarded-Proto $scheme;
# --- AJOUT INDISPENSABLE POUR LES WEBSOCKETS ---
proxy_http_version 1.1; ## Requis
proxy_set_header Upgrade $http_upgrade; ## Requis
proxy_set_header Connection "upgrade"; ## Requis
# -----------------------------------------------
# DESACTIVATION TOTALE DU CACHE ET DU BUFFER # DESACTIVATION TOTALE DU CACHE ET DU BUFFER
proxy_buffering off; proxy_buffering off;
proxy_cache off; proxy_cache off;
proxy_http_version 1.1;
proxy_set_header Connection "";
chunked_transfer_encoding on; chunked_transfer_encoding on;
# Temps d'attente rallongé pour les gros modèles # Temps d'attente rallongé pour les gros modèles