Spaces:
Running
Running
File size: 715 Bytes
55bcd2b | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | server {
listen 80;
server_name localhost;
root /usr/share/nginx/html;
index index.html;
# Fichiers statiques
location / {
try_files $uri $uri/ /index.html;
}
# Proxy vers l'API backend
location /predict {
proxy_pass http://api:8000/predict;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_read_timeout 120s;
}
location /analyze/ {
proxy_pass http://api:8000/analyze/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_read_timeout 120s;
}
location /health {
proxy_pass http://api:8000/health;
}
} |