feat: sigil simple 1

This commit is contained in:
Stepan Vladovskiy 2023-10-18 20:16:42 -03:00
parent 4750d5d14f
commit 58c85b5082

View File

@ -48,18 +48,19 @@ server {
location / { location / {
proxy_pass http://{{ $.APP }}-{{ $upstream_port }}; proxy_pass http://{{ $.APP }}-{{ $upstream_port }};
add_header 'Cache-Control' 'no-cache'; proxy_http_version 1.1;
add_header 'Content-Type' 'text/event-stream'; proxy_set_header Connection "";
add_header 'Connection' 'keep-alive';
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_buffering off; proxy_buffering off;
proxy_cache off;
proxy_read_timeout 36000s; add_header 'Access-Control-Allow-Origin' $allow_origin;
{{ $proxy_settings }} add_header 'Access-Control-Allow-Credentials' 'true';
{{ $cors_headers_options }} add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
{{ $cors_headers_post }} add_header 'Access-Control-Allow-Headers' 'DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range';
{{ $cors_headers_get }} if ($request_method = 'OPTIONS') {
add_header 'Access-Control-Max-Age' 1728000;
add_header 'Content-Type' 'text/plain charset=UTF-8';
add_header 'Content-Length' 0;
return 204;
} }
# Error pages # Error pages