🚧 Add topic explorer
This commit is contained in:
@@ -17,4 +17,17 @@ server {
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
}
|
||||
|
||||
# Server-Sent Events (topic explorer): buffering would hold stream
|
||||
# chunks until the buffer fills — disable it and allow long-lived
|
||||
# connections. The backend also sends X-Accel-Buffering: no.
|
||||
location /api/v1/topics/stream/ {
|
||||
proxy_pass http://mqtt-backend:8000;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_buffering off;
|
||||
proxy_read_timeout 3600s;
|
||||
proxy_send_timeout 3600s;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user