From faacbcdcffccc1b7bb73a238ceec01d2b202aa00 Mon Sep 17 00:00:00 2001 From: skeris Date: Mon, 15 Jul 2024 13:30:54 +0300 Subject: [PATCH] -- --- admin.conf | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/admin.conf b/admin.conf index e0fd845..9eeef42 100644 --- a/admin.conf +++ b/admin.conf @@ -129,6 +129,20 @@ server { add_header Access-Control-Allow-Methods OPTIONS,GET,POST,PATCH,PUT,DELETE; proxy_pass http://10.8.0.8:8065/; } + location /customer/v1.0.0/ { + 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 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 always; + add_header Access-Control-Allow-Methods OPTIONS,GET,POST,PATCH,PUT,DELETE; + proxy_pass http://10.8.0.8:8066/; + } location /codeword/ { if ($request_method = OPTIONS) { @@ -144,6 +158,20 @@ server { add_header Access-Control-Allow-Methods OPTIONS,GET,POST,PATCH,PUT,DELETE; proxy_pass http://10.8.0.8:59664/; } + location /codeword/v1.0.0/ { + 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 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 always; + add_header Access-Control-Allow-Methods OPTIONS,GET,POST,PATCH,PUT,DELETE; + proxy_pass http://10.8.0.8:59666/; + } location /price/ { if ($request_method = OPTIONS) { add_header Access-Control-Allow-Origin $http_origin always; @@ -216,7 +244,7 @@ server { chunked_transfer_encoding off; proxy_buffering off; proxy_cache off; - proxy_pass http://10.8.0.6:7037/; + proxy_pass http://10.8.0.8:7037/; }