From 2173da2cad827b12a415daaffd6873befd0f28a1 Mon Sep 17 00:00:00 2001 From: Stepan Vladovskiy Date: Wed, 29 Jan 2025 16:31:41 -0300 Subject: [PATCH] feat: sv nginx conf sigil without map function, becasue it is moved to global nginx config --- nginx.conf.sigil | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/nginx.conf.sigil b/nginx.conf.sigil index b95e202..7505258 100644 --- a/nginx.conf.sigil +++ b/nginx.conf.sigil @@ -9,10 +9,7 @@ {{ $cors_headers_get := "if ($request_method = 'GET') { add_header 'Access-Control-Allow-Origin' '$allow_origin' always; add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS' always; add_header 'Access-Control-Allow-Headers' 'DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range,Authorization' always; add_header 'Access-Control-Expose-Headers' 'Content-Length,Content-Range' always; add_header 'Access-Control-Allow-Credentials' 'true' always; }" }} # Mapping for allowed origins -map $http_origin $allow_origin { - ~^https?:\/\/((.*\.)?localhost(:\d+)?|discoursio-webapp(-(.*))?\.vercel\.app|(.*\.)?discours\.io)$ $http_origin; - default ""; -} +# is moved to globL NGINX # Server block setup {{ range $port_map := .PROXY_PORT_MAP | split " " }}