diff --git a/charts/hedera-network/charts/hedera-explorer/.helmignore b/charts/hedera-network/charts/hedera-explorer/.helmignore new file mode 100644 index 000000000..4eb90c8fc --- /dev/null +++ b/charts/hedera-network/charts/hedera-explorer/.helmignore @@ -0,0 +1,23 @@ +# OS +.DS_Store + +# VCS +.git/ +.gitignore +.bzr/ +.bzrignore +.hg/ +.hgignore +.svn/ + +# Backup +*.swp +*.bak +*.tmp +*~ + +# IDE +.project +.idea/ +.vscode/ +*.tmproj diff --git a/charts/hedera-network/charts/hedera-explorer/templates/configmap.yaml b/charts/hedera-network/charts/hedera-explorer/templates/configmap.yaml index 4f64a650d..4449bbb56 100644 --- a/charts/hedera-network/charts/hedera-explorer/templates/configmap.yaml +++ b/charts/hedera-network/charts/hedera-explorer/templates/configmap.yaml @@ -46,7 +46,7 @@ data: {{- range $path, $backend := .Values.proxyPass }} location {{ $path }} { - proxy_pass {{ $backend }}; + proxy_pass {{ tpl $backend $ }}; } {{- end }} diff --git a/charts/hedera-network/charts/hedera-explorer/values.yaml b/charts/hedera-network/charts/hedera-explorer/values.yaml index 7a36eeb9c..03302002d 100644 --- a/charts/hedera-network/charts/hedera-explorer/values.yaml +++ b/charts/hedera-network/charts/hedera-explorer/values.yaml @@ -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: | [