diff --git a/etc/k8s/eshoponabp/charts/gateway-web/templates/gateway-web-configmap.yaml b/etc/k8s/eshoponabp/charts/gateway-web/templates/gateway-web-configmap.yaml index 5d905823..70a3c739 100644 --- a/etc/k8s/eshoponabp/charts/gateway-web/templates/gateway-web-configmap.yaml +++ b/etc/k8s/eshoponabp/charts/gateway-web/templates/gateway-web-configmap.yaml @@ -86,6 +86,20 @@ data: "Address": "{{ .Values.reRoutes.administrationService.url }}" } } + }, + "catalogCluster": { + "Destinations": { + "destination1": { + "Address": "{{ .Values.reRoutes.catalogService.url }}" + } + } + }, + "orderingCluster": { + "Destinations": { + "destination1": { + "Address": "{{ .Values.reRoutes.orderingService.url }}" + } + } } } } diff --git a/etc/k8s/eshoponabp/charts/gateway-web/values.yaml b/etc/k8s/eshoponabp/charts/gateway-web/values.yaml index 49ac9ace..ab1df0f5 100644 --- a/etc/k8s/eshoponabp/charts/gateway-web/values.yaml +++ b/etc/k8s/eshoponabp/charts/gateway-web/values.yaml @@ -19,6 +19,10 @@ reRoutes: url: http://eshop-st-identity administrationService: url: http://eshop-st-administration + catalogService: + url: http://eshop-st-catalog + orderingService: + url: http://eshop-st-order ingress: host: # eshop-st-gateway-web tlsSecret: eshop-wildcard-tls diff --git a/etc/k8s/eshoponabp/charts/web/templates/web-configmap.yaml b/etc/k8s/eshoponabp/charts/web/templates/web-configmap.yaml index 9f6a6a75..bdcbe997 100644 --- a/etc/k8s/eshoponabp/charts/web/templates/web-configmap.yaml +++ b/etc/k8s/eshoponabp/charts/web/templates/web-configmap.yaml @@ -5,24 +5,24 @@ metadata: data: dynamic-env.json: |- { - "production": "true", - "application": { - "baseUrl": "{{ .Values.config.selfUrl }}", - "name": "EShopOnAbp", - "logoUrl": "" - }, - "oAuthConfig": { - "issuer": "{{ .Values.config.authServer.authority }}", - "redirectUri": "{{ .Values.config.selfUrl }}", - "requireHttps": "{{ .Values.config.authServer.requireHttpsMetadata }}", - "clientId": "Web", - "responseType": "{{ .Values.config.authServer.responseType }}", - "scope": "offline_access openid profile email phone AccountService IdentityService AdministrationService CatalogService OrderingService" - }, - "apis": { - "default": { - "url": "{{ .Values.config.gatewayUrl }}", - "rootNamespace": "EShopOnAbp" - } - } + "production": "true", + "application": { + "baseUrl": "{{ .Values.config.selfUrl }}", + "name": "EShopOnAbp", + "logoUrl": "" + }, + "oAuthConfig": { + "issuer": "{{ .Values.config.authServer.authority }}", + "redirectUri": "{{ .Values.config.selfUrl }}", + "requireHttps": "{{ .Values.config.authServer.requireHttpsMetadata }}", + "clientId": "Web", + "responseType": "{{ .Values.config.authServer.responseType }}", + "scope": "offline_access openid profile email phone AccountService IdentityService AdministrationService CatalogService OrderingService" + }, + "apis": { + "default": { + "url": "{{ .Values.config.gatewayUrl }}", + "rootNamespace": "EShopOnAbp" + } + } } \ No newline at end of file diff --git a/etc/k8s/eshoponabp/charts/web/templates/web-deployment.yaml b/etc/k8s/eshoponabp/charts/web/templates/web-deployment.yaml index cb7edabe..e9c29801 100644 --- a/etc/k8s/eshoponabp/charts/web/templates/web-deployment.yaml +++ b/etc/k8s/eshoponabp/charts/web/templates/web-deployment.yaml @@ -22,7 +22,7 @@ spec: containerPort: 443 volumeMounts: - name: config-volume - mountPath: /app/dynamic-env.json + mountPath: /usr/share/nginx/html/dynamic-env.json subPath: dynamic-env.json env: {{- if .Values.env }} diff --git a/etc/k8s/eshoponabp/values.azure.yaml b/etc/k8s/eshoponabp/values.azure.yaml index c8dfe956..db6e3ba9 100644 --- a/etc/k8s/eshoponabp/values.azure.yaml +++ b/etc/k8s/eshoponabp/values.azure.yaml @@ -25,8 +25,7 @@ authserver: web: config: selfUrl: https://admin.eshoponabp.com - # gatewayUrl: http://eshop-az-gateway-web - gatewayUrl: https://www.gateway.eshoponabp.com/ + gatewayUrl: https://www.gateway.eshoponabp.com authServer: authority: https://auth.eshoponabp.com requireHttpsMetadata: "false" @@ -35,7 +34,7 @@ web: host: admin.eshoponabp.com image: repository: "volocr.azurecr.io/eshoponabp/app-web" - tag: 1 + tag: latest # public-web sub-chart override public-web: @@ -145,6 +144,10 @@ gateway-web: url: http://eshop-az-identity administrationService: url: http://eshop-az-administration + catalogService: + url: http://eshop-st-catalog + orderingService: + url: http://eshop-st-ordering # gateway-web-public sub-chart override gateway-web-public: