This commit is contained in:
2026-02-24 19:27:24 +01:00
parent a1b72e2d7e
commit 9ac9415599

View File

@ -1,32 +1,34 @@
server { server {
listen 80; listen 80;
# Accès à l'interface principale (Corrigé sur le port 8080) # Interface principale & Flux Ollama
# Accès à l'interface principale
location / { location / {
proxy_pass http://open-webui:8080; proxy_pass http://open-webui:8080;
proxy_set_header Host $host; proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Real-IP $remote_addr;
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;
# --- AJOUTS POUR FIXER MISTRAL ET LE JSON ERROR --- # 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
proxy_read_timeout 600s;
proxy_send_timeout 600s;
} }
# Accès aux APIs (Optimisé pour Gradio/Audio) # API Audio
location /audio/ { location /audio/ {
proxy_pass http://audio-api:7860/; proxy_pass http://audio-api:7860/;
proxy_buffering off;
proxy_redirect off;
proxy_http_version 1.1; proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade; proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade"; proxy_set_header Connection "upgrade";
proxy_set_header Host $host; proxy_set_header Host $host;
proxy_buffering off;
# Ajout de timeouts pour éviter les 504 pendant que l'IA réfléchit proxy_read_timeout 600s;
proxy_read_timeout 600;
} }
} }