From 6dc198db2bcb1cb6e19672ff00a063a1608f2d16 Mon Sep 17 00:00:00 2001 From: Mikhail Date: Mon, 22 Jul 2024 13:33:04 +0000 Subject: [PATCH] Update default.conf --- default.conf | 29 ++++++++++++++--------------- 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/default.conf b/default.conf index cf654c0..b0a9935 100644 --- a/default.conf +++ b/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;