From 5efa6608f5c5b3be08e7d1c5bea361230dc914c8 Mon Sep 17 00:00:00 2001 From: Danil Date: Mon, 3 Jul 2023 12:08:47 +0000 Subject: [PATCH] added location verification --- default.conf | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/default.conf b/default.conf index 62e83a1..7f29561 100644 --- a/default.conf +++ b/default.conf @@ -118,6 +118,20 @@ server { proxy_set_header Host $host; proxy_pass http://10.6.0.31:8006/; } + location /verification/ { + 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_set_header Referer $host; + proxy_set_header Origin $http_origin; + proxy_set_header Connection ''; + proxy_http_version 1.1; + chunked_transfer_encoding off; + proxy_buffering off; + proxy_cache off; + proxy_pass https://51.250.107.6:7035/; + } location / { if ($host = hub.pena.digital) {