Update default.conf

This commit is contained in:
Mikhail 2024-07-22 13:33:04 +00:00
parent 2274a4ebad
commit 6dc198db2b

@ -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/; 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/ { location /customer/v1.0.0/ {
if ($request_method = OPTIONS) { if ($request_method = OPTIONS) {
return 200; 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/; 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/ { location /codeword/ {
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;