Add https to api in test (#155)

This commit is contained in:
ftocal 2023-02-13 10:17:19 -03:00 committed by GitHub
parent 4ca0bf1c0e
commit a926f3c409
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 5 deletions

View File

@ -26,6 +26,11 @@ metadata:
namespace: {{ .NAMESPACE }}
annotations:
external-dns.alpha.kubernetes.io/hostname: {{ .HOSTNAME }}
{{ if eq .ENVIRONMENT "test" }}
service.beta.kubernetes.io/aws-load-balancer-backend-protocol: "http"
service.beta.kubernetes.io/aws-load-balancer-ssl-ports: "https"
service.beta.kubernetes.io/aws-load-balancer-ssl-cert: {{ .SSL_CERT }}
{{ end }}
labels:
app: {{ .NAME }}
spec:
@ -33,9 +38,13 @@ spec:
selector:
app: {{ .NAME }}
ports:
- port: 80
- name: http
port: 80
targetPort: {{ .PORT }}
protocol: TCP
- name: https
port: 443
targetPort: {{ .PORT }}
name: {{ .NAME }}
protocol: TCP
{{ end }}
---
@ -101,8 +110,8 @@ spec:
key: redis-uri
- name: WORMSCAN_CACHE_ENABLED
value: "true"
- name: PPROF_ENABLED
value: {{ .PPROF_ENABLED }}
- name: WORMSCAN_PPROF_ENABLED
value: {{ .WORMSCAN_PPROF_ENABLED }}
resources:
limits:
memory: {{ .RESOURCES_LIMITS_MEMORY }}

View File

@ -12,4 +12,5 @@ WORMSCAN_RUNMODE=DEVELOPMENT
WORMSCAN_LOGLEVEL=INFO
WORMSCAN_P2PNETWORK=testnet
WORMSCAN_PPROF_ENABLED=false
HOSTNAME=api.testnet.wormscan.io
HOSTNAME=api.testnet.wormscan.io
SSL_CERT=