Update default.conf
This commit is contained in:
parent
c50adfa772
commit
2a06847c22
18
default.conf
18
default.conf
@ -174,6 +174,24 @@ server {
|
||||
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 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 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/ {
|
||||
if ($request_method = OPTIONS) {
|
||||
add_header Access-Control-Allow-Origin $http_origin always;
|
||||
|
Loading…
Reference in New Issue
Block a user