avec nginx

This commit is contained in:
2026-02-24 14:21:03 +01:00
parent c8ca363996
commit f0b1dd07f6
2 changed files with 39 additions and 7 deletions

20
nginx/default.conf Normal file
View File

@ -0,0 +1,20 @@
server {
listen 80;
# Accès à l'interface principale (Open WebUI)
location / {
proxy_pass http://open-webui:3000;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
}
# Accès direct aux APIs (Optionnel, pour les étudiants avancés)
location /audio/ {
proxy_pass http://audio-api:7860/;
proxy_buffering off;
proxy_redirect off;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
}