Update default.conf
This commit is contained in:
parent
bacd161f0d
commit
bd286f4020
@ -3,8 +3,8 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
map "$service:$http_apiversion" $apiversion {
|
map "$service:$http_apiversion" $apiversion {
|
||||||
"verification:v1.0.0" "http://10.8.0.6:7036/";
|
"verification:v1.0.0" 10.8.0.6:7036;
|
||||||
"verification:" "http://10.8.0.6:7035/";
|
"verification:" 10.8.0.6:7035;
|
||||||
}
|
}
|
||||||
|
|
||||||
server {
|
server {
|
||||||
@ -294,7 +294,7 @@ server {
|
|||||||
proxy_pass https://storage.yandexcloud.net;
|
proxy_pass https://storage.yandexcloud.net;
|
||||||
}
|
}
|
||||||
|
|
||||||
location /verification/ {
|
location ~ ^/verification(/?)(.*)$ {
|
||||||
if ($request_method = OPTIONS) {
|
if ($request_method = OPTIONS) {
|
||||||
add_header Access-Control-Allow-Origin $http_origin always;
|
add_header Access-Control-Allow-Origin $http_origin always;
|
||||||
add_header Access-Control-Allow-Credentials true always;
|
add_header Access-Control-Allow-Credentials true always;
|
||||||
@ -314,7 +314,7 @@ server {
|
|||||||
proxy_buffering off;
|
proxy_buffering off;
|
||||||
proxy_cache off;
|
proxy_cache off;
|
||||||
|
|
||||||
proxy_pass $apiversion;
|
proxy_pass http://$apiversion/$2;
|
||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
|
Loading…
Reference in New Issue
Block a user