Skip to content

Commit 415615b

Browse files
Updated ingress to accept 2 hosts URL
1 parent 93afd5e commit 415615b

File tree

3 files changed

+27
-2
lines changed

3 files changed

+27
-2
lines changed

infra/chart/templates/ingress.yaml

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,28 @@ metadata:
2323
spec:
2424
ingressClassName: alb
2525
rules:
26-
- host: fast-auth-{{ .Values.environment }}.aws.peersyst.tech
26+
- host: {{ .Values.relayer.host1 }}
27+
http:
28+
paths:
29+
{{- if .Values.relayer.enabled }}
30+
- path: /api
31+
pathType: Prefix
32+
backend:
33+
service:
34+
name: api-{{ .Values.environment }}
35+
port:
36+
name: use-annotation
37+
{{- end }}
38+
{{- if .Values.customIssuer.enabled }}
39+
- path: /issuer
40+
pathType: Prefix
41+
backend:
42+
service:
43+
name: custom-issuer-{{ .Values.environment }}
44+
port:
45+
name: use-annotation
46+
{{- end }}
47+
- host: {{ .Values.relayer.host2 }}
2748
http:
2849
paths:
2950
{{- if .Values.relayer.enabled }}

infra/chart/values/production.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ namespace: fast-auth
33

44
relayer:
55
enabled: true
6+
host1: fast-auth-relayer-production.aws.peersyst.tech
7+
host2: relayer.fast-auth.com
68
service:
79
port: 3000
810
targetPort: 3000

infra/chart/values/staging.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ namespace: fast-auth
33

44
relayer:
55
enabled: true
6+
host1: fast-auth-staging.aws.peersyst.tech
7+
host2: api.testnet.fast-auth.com
68
service:
79
port: 3000
810
targetPort: 3000
@@ -71,4 +73,4 @@ attester:
7173

7274
ingress:
7375
enabled: true
74-
certificate: "arn:aws:acm:us-east-1:291847425310:certificate/b183b365-4363-4245-9966-7e990bf7b3d4"
76+
certificate: "arn:aws:acm:us-east-1:291847425310:certificate/b183b365-4363-4245-9966-7e990bf7b3d4,arn:aws:acm:us-east-1:291847425310:certificate/3446ab94-39e4-4efe-8b54-e09e15ede9d2"

0 commit comments

Comments
 (0)