Update default.conf
This commit is contained in:
parent
eaf77f0974
commit
059e071f07
@ -302,7 +302,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;
|
||||||
@ -322,8 +322,8 @@ server {
|
|||||||
chunked_transfer_encoding off;
|
chunked_transfer_encoding off;
|
||||||
proxy_buffering off;
|
proxy_buffering off;
|
||||||
proxy_cache off;
|
proxy_cache off;
|
||||||
|
rewrite ^/verification/?(.*) /$1;
|
||||||
proxy_pass http://$apiversion/$1;
|
proxy_pass http://$apiversion;
|
||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
|
Loading…
Reference in New Issue
Block a user