avec nginx
This commit is contained in:
20
nginx/default.conf
Normal file
20
nginx/default.conf
Normal 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";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user