yclients to pasha
This commit is contained in:
parent
a678532829
commit
5850222d51
40
default.conf
40
default.conf
@ -560,6 +560,46 @@ server {
|
||||
|
||||
proxy_pass http://10.7.0.7:1500/webhook/create/;
|
||||
}
|
||||
location /squiz/yclients/ {
|
||||
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,authorization,device,browser,os,devicetype,response-type always;
|
||||
add_header Access-Control-Allow-Methods OPTIONS,GET,POST,PATCH,PUT,DELETE;
|
||||
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,device,browser,os,devicetype,response-type always;
|
||||
add_header Access-Control-Allow-Methods OPTIONS,GET,POST,PATCH,PUT,DELETE;
|
||||
proxy_set_header Referer $host;
|
||||
proxy_set_header Origin $http_origin;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Client-Port $remote_port;
|
||||
proxy_set_header Origin $host;
|
||||
|
||||
proxy_pass http://10.7.0.7:1600/yclients/;
|
||||
}
|
||||
location /squiz/yclients/oauth/ {
|
||||
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,authorization,device,browser,os,devicetype,response-type always;
|
||||
add_header Access-Control-Allow-Methods OPTIONS,GET,POST,PATCH,PUT,DELETE;
|
||||
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,device,browser,os,devicetype,response-type always;
|
||||
add_header Access-Control-Allow-Methods OPTIONS,GET,POST,PATCH,PUT,DELETE;
|
||||
proxy_set_header Referer $host;
|
||||
proxy_set_header Origin $http_origin;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Client-Port $remote_port;
|
||||
proxy_set_header Origin $host;
|
||||
|
||||
proxy_pass http://10.7.0.7:1600/webhook/create/;
|
||||
}
|
||||
|
||||
location /squiz/amocrm/oauth/ {
|
||||
if ($request_method = OPTIONS) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user