erreur routing

This commit is contained in:
2026-02-25 09:34:55 +01:00
parent 6115c1a3c1
commit 0eb7671ce9

View File

@ -1,31 +1,20 @@
server {
listen 80;
# Interface principale & Flux Ollama
location / {
proxy_pass http://open-webui:8080;
# --- TRANSCRIPTION AUDIO (STT) ---
# Doit être AVANT location / pour avoir la priorité
location /api/v1/audio/transcriptions {
proxy_pass http://audio-api:7860/v1/audio/transcriptions;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
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
proxy_http_version 1.1;
proxy_buffering off;
proxy_cache off;
chunked_transfer_encoding on;
# Temps d'attente rallongé pour les gros modèles
proxy_read_timeout 600s;
proxy_send_timeout 600s;
client_max_body_size 25M;
}
# API Audio
# --- API AUDIO (accès direct Gradio/FastAPI) ---
location /audio/ {
proxy_pass http://audio-api:7860/;
proxy_http_version 1.1;
@ -34,5 +23,30 @@ server {
proxy_set_header Host $host;
proxy_buffering off;
proxy_read_timeout 600s;
client_max_body_size 25M;
}
# --- INTERFACE PRINCIPALE & FLUX OLLAMA ---
location / {
proxy_pass http://open-webui:8080;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
# INDISPENSABLE POUR LES WEBSOCKETS
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
# DÉSACTIVATION TOTALE DU CACHE ET DU BUFFER
proxy_buffering off;
proxy_cache off;
chunked_transfer_encoding on;
# Temps d'attente rallongé pour les gros modèles
proxy_read_timeout 600s;
proxy_send_timeout 600s;
client_max_body_size 25M;
}
}