Skip to content

Commit

Permalink
fix: allow Helm templating for proxyPass value (#726)
Browse files Browse the repository at this point in the history
Signed-off-by: Lenin Mehedy <lenin.mehedy@swirldslabs.com>
  • Loading branch information
leninmehedy authored Oct 17, 2023
1 parent 211360d commit 7ba2721
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion chart/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ data:
{{- range $path, $backend := .Values.proxyPass }}
location {{ $path }} {
proxy_pass {{ $backend }};
proxy_pass {{ tpl $backend $ }};
}
{{- end }}
Expand Down
7 changes: 5 additions & 2 deletions chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -158,10 +158,13 @@ volumes:
configMap:
name: '{{ include "hedera-explorer.fullname" . }}-config'

# Add custom reverse proxy configuration
# Add custom reverse proxy configuration.
# It is a key-value map where key is the path and value being a URL.
# Primary use case is to allow access to mirror node api via hedera explorer url
# Note that templating is allowed in the values
# Example:
# /api: "http://{{ .Release.Name }}-rest"
proxyPass: {}
# /api: http://fst-rest

config: |
[
Expand Down

0 comments on commit 7ba2721

Please sign in to comment.