From bd286f402061cad7e2117dca3b0d578cc0f541c5 Mon Sep 17 00:00:00 2001 From: Mikhail Date: Sat, 18 May 2024 19:18:48 +0000 Subject: [PATCH] Update default.conf --- default.conf | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/default.conf b/default.conf index fdd87f6..fd672b4 100644 --- a/default.conf +++ b/default.conf @@ -3,8 +3,8 @@ } map "$service:$http_apiversion" $apiversion { - "verification:v1.0.0" "http://10.8.0.6:7036/"; - "verification:" "http://10.8.0.6:7035/"; + "verification:v1.0.0" 10.8.0.6:7036; + "verification:" 10.8.0.6:7035; } server { @@ -294,7 +294,7 @@ server { proxy_pass https://storage.yandexcloud.net; } - location /verification/ { + location ~ ^/verification(/?)(.*)$ { if ($request_method = OPTIONS) { add_header Access-Control-Allow-Origin $http_origin always; add_header Access-Control-Allow-Credentials true always; @@ -314,7 +314,7 @@ server { proxy_buffering off; proxy_cache off; - proxy_pass $apiversion; + proxy_pass http://$apiversion/$2; } location / {