This commit is contained in:
2026-03-23 09:58:40 -03:00
parent 9c9c7dff09
commit 8186bb5fe6
40 changed files with 3996 additions and 17 deletions

View File

@@ -29,6 +29,10 @@ http {
server minio:9000;
}
upstream detection {
server detection:5175;
}
upstream envoy {
server envoy:8090;
}
@@ -76,6 +80,35 @@ http {
proxy_set_header Connection "upgrade";
}
# Detection UI
location /detection/ {
proxy_pass http://detection;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
# Vite HMR websocket (detection)
location /detection/@vite {
proxy_pass http://detection;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
}
# SSE streams — disable buffering for realtime delivery
location /api/detect/stream/ {
proxy_pass http://fastapi/detect/stream/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_buffering off;
proxy_cache off;
proxy_read_timeout 3600s;
chunked_transfer_encoding on;
}
# Chunker UI
location /chunker/ {
proxy_pass http://chunker;