fix: disable nginx proxy buffering to allow SSE real-time updates in production
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 52s
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 52s
This commit is contained in:
10
nginx.conf
10
nginx.conf
@@ -11,9 +11,13 @@ server {
|
||||
location /api/ {
|
||||
proxy_pass http://backend:3004/api/;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection 'upgrade';
|
||||
proxy_set_header Host $host;
|
||||
proxy_cache_bypass $http_upgrade;
|
||||
|
||||
# SSE specific settings
|
||||
proxy_buffering off;
|
||||
proxy_cache off;
|
||||
proxy_set_header Connection '';
|
||||
chunked_transfer_encoding off;
|
||||
proxy_read_timeout 24h;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user