From 393c0030718326dfb054e208a5b8bbee2ac32cf9 Mon Sep 17 00:00:00 2001 From: skeris Date: Sun, 18 May 2025 14:39:44 +0300 Subject: [PATCH] add rule for old codeword routee --- default.conf | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/default.conf b/default.conf index d69ee88..bdb288e 100644 --- a/default.conf +++ b/default.conf @@ -211,6 +211,31 @@ server { + location /codeword/ { + 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 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 always; + add_header Access-Control-Allow-Methods OPTIONS,GET,POST,PATCH,PUT,DELETE; + proxy_set_header Referer $host; + proxy_set_header Origin $http_origin; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Client-Port $remote_port; + proxy_set_header Origin $host; + + proxy_pass http://10.7.0.6:59664/; + } + + + + + location /codeword/v1.0.0/ {