phase 1
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user