From 2db2e40defdb1b0015c461487cff34a901b86629 Mon Sep 17 00:00:00 2001 From: Stepn_V Date: Sun, 15 Oct 2023 04:56:00 -0300 Subject: [PATCH] debug: sigil for location /connectis simple --- nginx.conf.sigil | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/nginx.conf.sigil b/nginx.conf.sigil index f015ed5..a51cc4a 100644 --- a/nginx.conf.sigil +++ b/nginx.conf.sigil @@ -57,7 +57,10 @@ server { # Custom location block for /connect location /connect { proxy_pass http://presence-8080/; - add_header 'Access-Control-Allow-Origin' 'https://discoursio-webapp.vercel.app'; + 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;