Browse Source

fix domain name www

skoc10/publish-charts-artifacthub
selmankoc 4 years ago
parent
commit
ffc3e280fb
  1. 14
      etc/k8s/eshoponabp/charts/public-web/templates/public-web-ingress.yaml
  2. 12
      etc/k8s/eshoponabp/values.azure.yaml

14
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: /

12
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"

Loading…
Cancel
Save