Update default.conf

This commit is contained in:
Mikhail 2024-05-18 19:12:30 +00:00
parent 173520492d
commit bacd161f0d

@ -3,8 +3,8 @@
} }
map "$service:$http_apiversion" $apiversion { map "$service:$http_apiversion" $apiversion {
"verification:v1.0.0" 10.8.0.6:7036; "verification:v1.0.0" "http://10.8.0.6:7036/";
"verification:" 10.8.0.6:7035; "verification:" "http://10.8.0.6:7035/";
} }
server { server {
@ -306,7 +306,6 @@ server {
add_header Access-Control-Allow-Credentials true 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-Headers content-type,authorization,response-type always;
add_header Access-Control-Allow-Methods OPTIONS,GET,POST,PATCH,PUT,DELETE; add_header Access-Control-Allow-Methods OPTIONS,GET,POST,PATCH,PUT,DELETE;
add_header Service "http://$apiversion/";
proxy_set_header Referer $host; proxy_set_header Referer $host;
proxy_set_header Origin $http_origin; proxy_set_header Origin $http_origin;
proxy_set_header Connection ''; proxy_set_header Connection '';
@ -315,7 +314,7 @@ server {
proxy_buffering off; proxy_buffering off;
proxy_cache off; proxy_cache off;
proxy_pass http://$apiversion/; proxy_pass $apiversion;
} }
location / { location / {