Update default.conf
This commit is contained in:
parent
2274a4ebad
commit
6dc198db2b
29
default.conf
29
default.conf
@ -142,21 +142,6 @@ access_log syslog:server=10.8.0.7:514,tag=nginx_access main;
|
||||
proxy_pass http://10.8.0.6:59303/;
|
||||
}
|
||||
|
||||
location /customer/ {
|
||||
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,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,response-type always;
|
||||
add_header Access-Control-Allow-Methods OPTIONS,GET,POST,PATCH,PUT,DELETE;
|
||||
proxy_pass http://10.8.0.6:8065/;
|
||||
}
|
||||
|
||||
location /customer/v1.0.0/ {
|
||||
if ($request_method = OPTIONS) {
|
||||
return 200;
|
||||
@ -171,6 +156,20 @@ access_log syslog:server=10.8.0.7:514,tag=nginx_access main;
|
||||
proxy_pass http://10.8.0.6:8066/;
|
||||
}
|
||||
|
||||
location /customer/v1.0.1/ {
|
||||
if ($request_method = OPTIONS) {
|
||||
return 200;
|
||||
}
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Client-Port $remote_port;
|
||||
proxy_set_header Origin $host;
|
||||
proxy_http_version 1.1;
|
||||
chunked_transfer_encoding off;
|
||||
proxy_buffering off;
|
||||
proxy_cache off;
|
||||
proxy_pass http://10.8.0.6:8067/;
|
||||
}
|
||||
|
||||
location /codeword/ {
|
||||
if ($request_method = OPTIONS) {
|
||||
add_header Access-Control-Allow-Origin $http_origin always;
|
||||
|
Loading…
Reference in New Issue
Block a user