Update default.conf
This commit is contained in:
parent
6bb89bb9ec
commit
40e6c74082
13
default.conf
13
default.conf
@ -1,12 +1,3 @@
|
|||||||
|
|
||||||
upstream verificationv0 {
|
|
||||||
server 10.8.0.6:7035;
|
|
||||||
}
|
|
||||||
|
|
||||||
upstream verificationv1.0.0 {
|
|
||||||
server 10.8.0.6:7036;
|
|
||||||
}
|
|
||||||
|
|
||||||
map $uri $service {
|
map $uri $service {
|
||||||
~^/([^/]+).*$ $1;
|
~^/([^/]+).*$ $1;
|
||||||
}
|
}
|
||||||
@ -316,8 +307,6 @@ server {
|
|||||||
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 "$service:$http_apiversion";
|
add_header Service "$service:$http_apiversion";
|
||||||
add_header Apiver $http_apiversion;
|
|
||||||
add_header Apivers $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 '';
|
||||||
@ -326,7 +315,7 @@ server {
|
|||||||
proxy_buffering off;
|
proxy_buffering off;
|
||||||
proxy_cache off;
|
proxy_cache off;
|
||||||
|
|
||||||
proxy_pass http://10.8.0.6:7035/;
|
proxy_pass http://$apiversion/;
|
||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
|
Loading…
Reference in New Issue
Block a user