Skip to content

Commit

Permalink
[ws-proxy] Make HTTPs cert names configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
geropl committed May 19, 2021
1 parent 89fabb1 commit 25ece59
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions chart/templates/ws-proxy-configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,13 @@ data:
},
"proxy": {
"https": {
{{- if (and $.Values.certificatesSecret.certName $.Values.certificatesSecret.keyName) }}
"crt": "/mnt/certificates/{{ $.Values.certificatesSecret.certName }}",
"key": "/mnt/certificates/{{ $.Values.certificatesSecret.keyName }}"
{{- else }}
"crt": "/mnt/certificates/tls.crt",
"key": "/mnt/certificates/tls.key"
{{- end }}
},
"transportConfig": {
"connectTimeout": "10s",
Expand Down
4 changes: 4 additions & 0 deletions chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ version:
hostname: localhost
certificatesSecret:
secretName: https-certificates
certName: cert.pem
keyName: privkey.pem
chainName: chain.pem
fullChainName: fullchain.pem

imagePrefix: gcr.io/gitpod-io/self-hosted/
installation:
Expand Down

0 comments on commit 25ece59

Please sign in to comment.