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 / {