Skip to content

Commit 73e861e

Browse files
committed
fix: disable nginx proxy buffering
1 parent 323908b commit 73e861e

2 files changed

Lines changed: 14 additions & 0 deletions

File tree

config/dev/cab-standalone/nginx-kubernetes.conf

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,13 @@ server {
122122
add_header Cache-Control "no-cache";
123123
proxy_pass http://cards-consultation.cab-dev.svc.cluster.local:8080/;
124124
proxy_set_header X-Forwarded-For $remote_addr;
125+
126+
# SSE (Server-Sent Events) support for cardSubscription streaming
127+
proxy_buffering off;
128+
proxy_cache off;
129+
proxy_set_header Connection '';
130+
proxy_http_version 1.1;
131+
proxy_read_timeout 3600s;
125132
}
126133
### !!!! SECURITY WARNING !!!!
127134
### The following configuration is suitable only if you set checkAuthenticationForCardSending to true

config/dev/cab-standalone/nginx.conf

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,13 @@ server {
105105
proxy_set_header Host $http_host;
106106
proxy_pass http://cards-consultation:8080/;
107107
proxy_set_header X-Forwarded-For $remote_addr;
108+
109+
# SSE (Server-Sent Events) support for cardSubscription streaming
110+
proxy_buffering off;
111+
proxy_cache off;
112+
proxy_set_header Connection '';
113+
proxy_http_version 1.1;
114+
proxy_read_timeout 3600s;
108115
}
109116
### !!!! SECURITY WARNING !!!!
110117
### The following configuration is suitable only if you set checkAuthenticationForCardSending to true

0 commit comments

Comments
 (0)