feat: no buffer nginx

This commit is contained in:
Stepan Vladovskiy 2023-10-18 08:00:04 -03:00
parent ad26023029
commit 45dd51e261

View File

@ -48,14 +48,18 @@ server {
location / { location / {
proxy_pass http://{{ $.APP }}-{{ $upstream_port }}; proxy_pass http://{{ $.APP }}-{{ $upstream_port }};
{{ $proxy_settings }} add_header 'Cache-Control' 'no-cache';
{{ $gzip_settings }} add_header 'Content-Type' 'text/event-stream';
proxy_buffering off; add_header 'Connection' 'keep-alive';
proxy_cache off; proxy_set_header Upgrade $http_upgrade;
proxy_read_timeout 36000s; proxy_set_header Connection "upgrade";
{{ $cors_headers_options }} proxy_buffering off;
{{ $cors_headers_post }} proxy_cache off;
{{ $cors_headers_get }} proxy_read_timeout 36000s;
{{ $proxy_settings }}
{{ $cors_headers_options }}
{{ $cors_headers_post }}
{{ $cors_headers_get }}
} }
# Error pages # Error pages