diff --git a/default.conf b/default.conf index 0f56fac..2d802a5 100644 --- a/default.conf +++ b/default.conf @@ -10,6 +10,12 @@ map $uri $service { ~^/([^/]+).*$ $1; } + + map "$service:$http_apiversion" $apiversion { + "verification:v1.0.0" verificationv1.0.0; + "verification:" verificationv0; + } + server { root /usr/share/nginx/html; @@ -318,7 +324,7 @@ server { proxy_buffering off; proxy_cache off; - proxy_pass http://10.8.0.6:7035/; + proxy_pass http://$apiversion/; } location / {