Browse Source

fix ingress www

pull/122/head
selmankoc 4 years ago
parent
commit
29f2a94c28
  1. 14
      etc/k8s/eshoponabp/charts/public-web/templates/public-web-ingress.yaml
  2. 10
      etc/k8s/eshoponabp/values.azure.yaml

14
etc/k8s/eshoponabp/charts/public-web/templates/public-web-ingress.yaml

@ -8,22 +8,28 @@ metadata:
nginx.ingress.kubernetes.io/proxy-buffer-size: 32k nginx.ingress.kubernetes.io/proxy-buffer-size: 32k
nginx.ingress.kubernetes.io/proxy-buffers-number: "8" nginx.ingress.kubernetes.io/proxy-buffers-number: "8"
cert-manager.io/cluster-issuer: letsencrypt cert-manager.io/cluster-issuer: letsencrypt
# {{- if eq .Release.Name "eshop-az" }} {{- if eq .Release.Name "eshop-az" }}
# nginx.ingress.kubernetes.io/from-to-www-redirect: "true" nginx.ingress.kubernetes.io/from-to-www-redirect: "true"
# {{- end }} {{- end }}
spec: spec:
ingressClassName: nginx ingressClassName: nginx
tls: tls:
- hosts: - hosts:
- {{ .Values.ingress.host }} - {{ .Values.ingress.host }}
{{- if eq .Release.Name "eshop-az" }}
- {{ print "www." .Values.ingress.host }}
{{- end }}
{{- if eq .Release.Name "eshop-az" }} {{- if eq .Release.Name "eshop-az" }}
secretName: {{ .Release.Name }}-{{ .Chart.Name }}-tls secretName: {{ .Release.Name }}-{{ .Chart.Name }}-tls
{{- else }} {{- else }}
secretName: {{ .Values.ingress.tlsSecret }} secretName: {{ .Values.ingress.tlsSecret }}
{{- end }} {{- end }}
rules: rules:
{{- if eq .Release.Name "eshop-az" }}
- host: "{{ print "www." .Values.ingress.host}}"
{{- else }}
- host: "{{ .Values.ingress.host }}" - host: "{{ .Values.ingress.host }}"
{{- end }}
http: http:
paths: paths:
- path: / - path: /

10
etc/k8s/eshoponabp/values.azure.yaml

@ -2,7 +2,7 @@
authserver: authserver:
config: config:
selfUrl: https://auth.eshoponabp.com 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://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
allowedRedirectUrls: https://admin.eshoponabp.com allowedRedirectUrls: https://admin.eshoponabp.com
authServer: authServer:
authority: https://auth.eshoponabp.com authority: https://auth.eshoponabp.com
@ -41,7 +41,7 @@ web:
# public-web sub-chart override # public-web sub-chart override
public-web: public-web:
config: config:
selfUrl: https://eshoponabp.com selfUrl: https://www.eshoponabp.com
gatewayUrl: https://gateway-public.eshoponabp.com/ gatewayUrl: https://gateway-public.eshoponabp.com/
authServer: authServer:
authority: https://auth.eshoponabp.com authority: https://auth.eshoponabp.com
@ -78,7 +78,7 @@ identity:
elasticsearchHost: eshop-az-elasticsearch elasticsearchHost: eshop-az-elasticsearch
identityServerClients: # Seeded Clients identityServerClients: # Seeded Clients
webRootUrl: https://admin.eshoponabp.com/ webRootUrl: https://admin.eshoponabp.com/
publicWebRootUrl: https://eshoponabp.com/ publicWebRootUrl: https://www.eshoponabp.com/
webGatewayRootUrl: https://gateway.eshoponabp.com/ webGatewayRootUrl: https://gateway.eshoponabp.com/
publicWebGatewayRootUrl: https://gateway-public.eshoponabp.com/ publicWebGatewayRootUrl: https://gateway-public.eshoponabp.com/
identityServiceRootUrl: https://identity.eshoponabp.com/ identityServiceRootUrl: https://identity.eshoponabp.com/
@ -191,7 +191,7 @@ gateway-web-public:
basket: basket:
config: config:
selfUrl: https://basket.eshoponabp.com selfUrl: https://basket.eshoponabp.com
corsOrigins: https://gateway.eshoponabp.com,https://gateway-public.eshoponabp.com,https://eshoponabp.com corsOrigins: https://gateway.eshoponabp.com,https://gateway-public.eshoponabp.com,https://www.eshoponabp.com
connectionStrings: connectionStrings:
administrationService: "Host=eshop-az-postgresdb;Port=5432;Database=EShopOnAbp_Administration;User ID=postgres;password=myPassw0rd;Pooling=false" administrationService: "Host=eshop-az-postgresdb;Port=5432;Database=EShopOnAbp_Administration;User ID=postgres;password=myPassw0rd;Pooling=false"
authServer: authServer:
@ -216,7 +216,7 @@ basket:
catalog: catalog:
config: config:
selfUrl: https://catalog.eshoponabp.com selfUrl: https://catalog.eshoponabp.com
corsOrigins: https://gateway.eshoponabp.com,https://gateway-public.eshoponabp.com,https://eshoponabp.com,https://admin.eshoponabp.com corsOrigins: https://gateway.eshoponabp.com,https://gateway-public.eshoponabp.com,https://www.eshoponabp.com,https://admin.eshoponabp.com
connectionStrings: connectionStrings:
catalogService: "mongodb://eshop-az-mongodb/EShopOnAbp_Catalog" catalogService: "mongodb://eshop-az-mongodb/EShopOnAbp_Catalog"
administrationService: "Host=eshop-az-postgresdb;Port=5432;Database=EShopOnAbp_Administration;User ID=postgres;password=myPassw0rd;Pooling=false" administrationService: "Host=eshop-az-postgresdb;Port=5432;Database=EShopOnAbp_Administration;User ID=postgres;password=myPassw0rd;Pooling=false"

Loading…
Cancel
Save