From fb7f8f1109ec89fa98da2ed1ee7a7d0affe436f6 Mon Sep 17 00:00:00 2001 From: Mikhail Date: Sat, 18 May 2024 12:58:55 +0000 Subject: [PATCH] Update default.conf --- default.conf | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 / {