From 2394ae0161d5c7baa5dd05bafc268cccd9a2ea22 Mon Sep 17 00:00:00 2001 From: Stepan Vladovskiy Date: Sun, 15 Oct 2023 05:17:44 -0300 Subject: [PATCH] feat: sigil nginx no buffer proxy --- nginx.conf.sigil | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/nginx.conf.sigil b/nginx.conf.sigil index a51cc4a..9c153b2 100644 --- a/nginx.conf.sigil +++ b/nginx.conf.sigil @@ -60,12 +60,15 @@ server { add_header 'Cache-Control' 'no-cache'; add_header 'Content-Type' 'text/event-stream'; add_header 'Connection' 'keep-alive'; - add_header 'Access-Control-Allow-Origin' '$allow_origin'; - add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS'; - add_header 'Access-Control-Allow-Headers' 'Content-Type, Authorization'; - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "upgrade"; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "upgrade"; + proxy_buffering off; + proxy_cache off; + proxy_read_timeout 36000s; + {{ $proxy_settings }} + {{ $cors_headers_options }} + {{ $cors_headers_post }} + {{ $cors_headers_get }} } # Error pages