diff --git a/deploy/inji-verify-ui/install.sh b/deploy/inji-verify-ui/install.sh index 98308909..69560b99 100644 --- a/deploy/inji-verify-ui/install.sh +++ b/deploy/inji-verify-ui/install.sh @@ -55,7 +55,8 @@ function installing_inji-verify-ui() { echo Installing INJIVERIFY helm -n $NS install inji-verify-ui mosip/inji-verify-ui \ --set istio.hosts\[0\]=$INJIVERIFY_HOST \ - --version $CHART_VERSION + --set inji_verify_service.host="inji-verify-service.$NS" \ + --version $CHART_VERSION kubectl -n $NS get deploy -o name | xargs -n1 -t kubectl -n $NS rollout status diff --git a/helm/inji-verify-ui/templates/configmap.yaml b/helm/inji-verify-ui/templates/configmap.yaml index e2d4f8d1..b31733be 100644 --- a/helm/inji-verify-ui/templates/configmap.yaml +++ b/helm/inji-verify-ui/templates/configmap.yaml @@ -42,6 +42,15 @@ data: proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Host $server_name; } + + location /v1/verify { + proxy_pass http://{{ .Values.inji_verify_service.host }}/v1/verify; + proxy_redirect off; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Host $server_name; + } location /authorize { return 301 https://{{ .Values.esignet_redirect_url }}$request_uri; } diff --git a/helm/inji-verify-ui/values.yaml b/helm/inji-verify-ui/values.yaml index 10685403..63294291 100644 --- a/helm/inji-verify-ui/values.yaml +++ b/helm/inji-verify-ui/values.yaml @@ -419,6 +419,8 @@ metrics: inji_verify: port: '8000' host: 'mimoto.mimoto' +inji_verify_service: + host: 'inji-verify-service.injiverify' esignet_redirect_url: 'esignet.sandbox.xyz.net' istio: enabled: true