From ffc3e280fb93351c8690cf65904283702e44cc51 Mon Sep 17 00:00:00 2001 From: selmankoc Date: Fri, 17 Jun 2022 18:24:28 +0300 Subject: [PATCH] fix domain name www --- .../public-web/templates/public-web-ingress.yaml | 14 ++++---------- etc/k8s/eshoponabp/values.azure.yaml | 12 ++++++------ 2 files changed, 10 insertions(+), 16 deletions(-) diff --git a/etc/k8s/eshoponabp/charts/public-web/templates/public-web-ingress.yaml b/etc/k8s/eshoponabp/charts/public-web/templates/public-web-ingress.yaml index b02a0004..947f96cf 100644 --- a/etc/k8s/eshoponabp/charts/public-web/templates/public-web-ingress.yaml +++ b/etc/k8s/eshoponabp/charts/public-web/templates/public-web-ingress.yaml @@ -8,28 +8,22 @@ metadata: nginx.ingress.kubernetes.io/proxy-buffer-size: 32k nginx.ingress.kubernetes.io/proxy-buffers-number: "8" cert-manager.io/cluster-issuer: letsencrypt -{{- if eq .Release.Name "eshop-az" }} - nginx.ingress.kubernetes.io/from-to-www-redirect: "true" -{{- end }} +# {{- if eq .Release.Name "eshop-az" }} +# nginx.ingress.kubernetes.io/from-to-www-redirect: "true" +# {{- end }} spec: ingressClassName: nginx tls: - hosts: - {{ .Values.ingress.host }} -{{- if eq .Release.Name "eshop-az" }} - - {{ print "www." .Values.ingress.host }} -{{- end }} + {{- if eq .Release.Name "eshop-az" }} secretName: {{ .Release.Name }}-{{ .Chart.Name }}-tls {{- else }} secretName: {{ .Values.ingress.tlsSecret }} {{- end }} rules: -{{- if eq .Release.Name "eshop-az" }} - - host: "{{ print "www." .Values.ingress.host }}" -{{- else }} - host: "{{ .Values.ingress.host }}" -{{- end }} http: paths: - path: / diff --git a/etc/k8s/eshoponabp/values.azure.yaml b/etc/k8s/eshoponabp/values.azure.yaml index 481bf0c4..83bdfb91 100644 --- a/etc/k8s/eshoponabp/values.azure.yaml +++ b/etc/k8s/eshoponabp/values.azure.yaml @@ -2,7 +2,7 @@ authserver: config: selfUrl: https://auth.eshoponabp.com - corsOrigins: https://gateway.eshoponabp.com,https://gateway-public.eshoponabp.com,https://identity.eshoponabp.com,https://administration.eshoponabp.com,https://basket.eshoponabp.com,https://catalog.eshoponabp.com,https://order.eshoponabp.com,https://payment.eshoponabp.com,https://admin.eshoponabp.com,https://www.eshoponabp.com + corsOrigins: https://gateway.eshoponabp.com,https://gateway-public.eshoponabp.com,https://identity.eshoponabp.com,https://administration.eshoponabp.com,https://basket.eshoponabp.com,https://catalog.eshoponabp.com,https://order.eshoponabp.com,https://payment.eshoponabp.com,https://admin.eshoponabp.com,https://eshoponabp.com allowedRedirectUrls: https://admin.eshoponabp.com authServer: authority: https://auth.eshoponabp.com @@ -41,7 +41,7 @@ web: # public-web sub-chart override public-web: config: - selfUrl: https://www.eshoponabp.com + selfUrl: https://eshoponabp.com gatewayUrl: https://gateway-public.eshoponabp.com/ authServer: authority: https://auth.eshoponabp.com @@ -55,7 +55,7 @@ public-web: host: eshoponabp.com image: repository: "volocr.azurecr.io/eshoponabp/app-publicweb" - tag: 1.0.0 + tag: 1.0.3 # identity-service sub-chart override identity: @@ -76,7 +76,7 @@ identity: elasticsearchHost: eshop-az-elasticsearch identityServerClients: # Seeded Clients webRootUrl: https://admin.eshoponabp.com/ - publicWebRootUrl: https://www.eshoponabp.com/ + publicWebRootUrl: https://eshoponabp.com/ webGatewayRootUrl: https://gateway.eshoponabp.com/ publicWebGatewayRootUrl: https://gateway-public.eshoponabp.com/ identityServiceRootUrl: https://identity.eshoponabp.com/ @@ -189,7 +189,7 @@ gateway-web-public: basket: config: selfUrl: https://basket.eshoponabp.com - corsOrigins: https://gateway.eshoponabp.com,https://gateway-public.eshoponabp.com,https://www.eshoponabp.com + corsOrigins: https://gateway.eshoponabp.com,https://gateway-public.eshoponabp.com,https://eshoponabp.com connectionStrings: administrationService: "Host=eshop-az-postgresdb;Port=5432;Database=EShopOnAbp_Administration;User ID=postgres;password=myPassw0rd;Pooling=false" authServer: @@ -214,7 +214,7 @@ basket: catalog: config: selfUrl: https://catalog.eshoponabp.com - corsOrigins: https://gateway.eshoponabp.com,https://gateway-public.eshoponabp.com,https://www.eshoponabp.com,https://admin.eshoponabp.com + corsOrigins: https://gateway.eshoponabp.com,https://gateway-public.eshoponabp.com,https://eshoponabp.com,https://admin.eshoponabp.com connectionStrings: catalogService: "mongodb://eshop-az-mongodb/EShopOnAbp_Catalog" administrationService: "Host=eshop-az-postgresdb;Port=5432;Database=EShopOnAbp_Administration;User ID=postgres;password=myPassw0rd;Pooling=false"