Update default.conf
This commit is contained in:
parent
6727ed9586
commit
8b743f87ef
48
default.conf
48
default.conf
@ -374,55 +374,15 @@ access_log syslog:server=10.8.0.7:514,tag=nginx_access main;
|
|||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
proxy_pass http://10.8.0.6:8007/;
|
proxy_pass http://10.8.0.6:8007/;
|
||||||
}
|
}
|
||||||
location /verification1 {
|
|
||||||
if ($request_method = OPTIONS) {
|
|
||||||
add_header Access-Control-Allow-Origin $http_origin always;
|
|
||||||
add_header Access-Control-Allow-Credentials true always;
|
|
||||||
add_header Access-Control-Allow-Headers content-type,response-type always;
|
|
||||||
add_header Access-Control-Allow-Methods GET;
|
|
||||||
|
|
||||||
return 200;
|
|
||||||
}
|
|
||||||
add_header Access-Control-Allow-Origin $http_origin always;
|
|
||||||
add_header Access-Control-Allow-Credentials true always;
|
|
||||||
add_header Access-Control-Allow-Headers content-type,response-type always;
|
|
||||||
add_header Access-Control-Allow-Methods GET;
|
|
||||||
chunked_transfer_encoding off;
|
|
||||||
proxy_buffering off;
|
|
||||||
proxy_cache off;
|
|
||||||
proxy_pass https://storage.yandexcloud.net;
|
|
||||||
}
|
|
||||||
location /squizimages {
|
|
||||||
if ($request_method = OPTIONS) {
|
|
||||||
add_header Access-Control-Allow-Origin $http_origin always;
|
|
||||||
add_header Access-Control-Allow-Credentials true always;
|
|
||||||
add_header Access-Control-Allow-Headers content-type,response-type always;
|
|
||||||
add_header Access-Control-Allow-Methods GET;
|
|
||||||
|
|
||||||
return 200;
|
|
||||||
}
|
|
||||||
add_header Access-Control-Allow-Origin $http_origin always;
|
|
||||||
add_header Access-Control-Allow-Credentials true always;
|
|
||||||
add_header Access-Control-Allow-Headers content-type,response-type always;
|
|
||||||
add_header Access-Control-Allow-Methods GET;
|
|
||||||
chunked_transfer_encoding off;
|
|
||||||
proxy_buffering off;
|
|
||||||
proxy_cache off;
|
|
||||||
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-Origin $http_origin always;
|
||||||
add_header Access-Control-Allow-Credentials true always;
|
add_header Access-Control-Allow-Credentials true always;
|
||||||
add_header Access-Control-Allow-Headers content-type,authorization,response-type always;
|
add_header Access-Control-Allow-Headers content-type,authorization,response-type always;
|
||||||
add_header Access-Control-Allow-Methods OPTIONS,GET,POST,PATCH,PUT,DELETE;
|
add_header Access-Control-Allow-Methods OPTIONS,GET,POST,PATCH,PUT,DELETE;
|
||||||
|
if ($request_method = OPTIONS) {
|
||||||
return 200;
|
return 200;
|
||||||
}
|
}
|
||||||
add_header Access-Control-Allow-Origin $http_origin always;
|
|
||||||
add_header Access-Control-Allow-Credentials true always;
|
|
||||||
add_header Access-Control-Allow-Headers content-type,authorization,response-type always;
|
|
||||||
add_header Access-Control-Allow-Methods OPTIONS,GET,POST,PATCH,PUT,DELETE;
|
|
||||||
proxy_set_header Referer $host;
|
proxy_set_header Referer $host;
|
||||||
proxy_set_header Origin $http_origin;
|
proxy_set_header Origin $http_origin;
|
||||||
proxy_set_header Connection '';
|
proxy_set_header Connection '';
|
||||||
@ -434,17 +394,13 @@ access_log syslog:server=10.8.0.7:514,tag=nginx_access main;
|
|||||||
proxy_pass http://10.8.0.6:7035/;
|
proxy_pass http://10.8.0.6:7035/;
|
||||||
}
|
}
|
||||||
location /verification/v1.0.0/ {
|
location /verification/v1.0.0/ {
|
||||||
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;
|
||||||
add_header Access-Control-Allow-Headers content-type,authorization,response-type always;
|
add_header Access-Control-Allow-Headers content-type,authorization,response-type always;
|
||||||
add_header Access-Control-Allow-Methods OPTIONS,GET,POST,PATCH,PUT,DELETE;
|
add_header Access-Control-Allow-Methods OPTIONS,GET,POST,PATCH,PUT,DELETE;
|
||||||
|
if ($request_method = OPTIONS) {
|
||||||
return 200;
|
return 200;
|
||||||
}
|
}
|
||||||
add_header Access-Control-Allow-Origin $http_origin always;
|
|
||||||
add_header Access-Control-Allow-Credentials true always;
|
|
||||||
add_header Access-Control-Allow-Headers content-type,authorization,response-type always;
|
|
||||||
add_header Access-Control-Allow-Methods OPTIONS,GET,POST,PATCH,PUT,DELETE;
|
|
||||||
proxy_set_header Referer $host;
|
proxy_set_header Referer $host;
|
||||||
proxy_set_header Origin $http_origin;
|
proxy_set_header Origin $http_origin;
|
||||||
proxy_set_header Connection '';
|
proxy_set_header Connection '';
|
||||||
|
Loading…
Reference in New Issue
Block a user