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;