From c9254c2eca06814202b3f8f2a1f38530d5e0bfb5 Mon Sep 17 00:00:00 2001 From: Mikhail Date: Sat, 27 Jul 2024 15:03:56 +0000 Subject: [PATCH] Update default.conf --- default.conf | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/default.conf b/default.conf index b0a9935..1b59dd3 100644 --- a/default.conf +++ b/default.conf @@ -1,4 +1,4 @@ -server { +/server { root /usr/share/nginx/html; access_log syslog:server=10.8.0.7:514,tag=nginx_access main; index index.html index.htm index.nginx-debian.html; @@ -185,6 +185,21 @@ access_log syslog:server=10.8.0.7:514,tag=nginx_access main; proxy_pass http://10.8.0.6: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,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:19100/; + } + location /treasurer/ { if ($request_method = OPTIONS) { add_header Access-Control-Allow-Origin $http_origin always;