Skip to content

SigNoz is an open-source, OpenTelemetry-native observability platform for your team and their AI agents. Get logs, metrics, and traces in one tool with features like APM, distributed tracing, log management, infra monitoring, etc. Combined with SigNoz MCP and a native AI teammate (in SigNoz Cloud) it helps you build more resilient apps.

fix: disable proxy buffering and cache (#3399)

Nityananda Gohain5d6bb18679d5
diff --git a/deploy/docker-swarm/common/nginx-config.conf b/deploy/docker-swarm/common/nginx-config.conf
index a8673496a2..158effc8bf 100644
--- a/deploy/docker-swarm/common/nginx-config.conf
+++ b/deploy/docker-swarm/common/nginx-config.conf
@@ -28,6 +28,18 @@ server {
proxy_pass http://alertmanager:9093/api/v2;
}
+ location ~ ^/api/(v1|v3)/logs/(tail|livetail){
+ proxy_pass http://query-service:8080;
+ proxy_http_version 1.1;
+
+ # connection will be closed if no data is read for 600s between successive read operations
+ proxy_read_timeout 600s;
+
+ # dont buffer the data send it directly to client.
+ proxy_buffering off;
+ proxy_cache off;
+ }
+
location /api {
proxy_pass http://query-service:8080/api;
# connection will be closed if no data is read for 600s between successive read operations
diff --git a/deploy/docker/common/nginx-config.conf b/deploy/docker/common/nginx-config.conf
index a8673496a2..158effc8bf 100644
--- a/deploy/docker/common/nginx-config.conf
+++ b/deploy/docker/common/nginx-config.conf
@@ -28,6 +28,18 @@ server {
proxy_pass http://alertmanager:9093/api/v2;
}
+ location ~ ^/api/(v1|v3)/logs/(tail|livetail){
+ proxy_pass http://query-service:8080;
+ proxy_http_version 1.1;
+
+ # connection will be closed if no data is read for 600s between successive read operations
+ proxy_read_timeout 600s;
+
+ # dont buffer the data send it directly to client.
+ proxy_buffering off;
+ proxy_cache off;
+ }
+
location /api {
proxy_pass http://query-service:8080/api;
# connection will be closed if no data is read for 600s between successive read operations