Skip to content

Commit d40b59a

Browse files
committed
feat(docker-registry-ui): add support to nginxProxyHeaders and nginxProxyPassHeaders
1 parent dc0676d commit d40b59a

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

charts/docker-registry-ui/templates/ui-deployment.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,15 @@ spec:
4040
{{- if .Values.ui.proxy }}
4141
- name: NGINX_PROXY_PASS_URL
4242
value: {{ .Values.ui.dockerRegistryUrl | quote }}
43+
{{- range $header := .Values.ui.nginxProxyHeaders }}
44+
{{- range $key, $value := $header }}
45+
- name: {{ printf "NGINX_PROXY_HEADER_%s" $key }}
46+
value: {{ $value }}
47+
{{- end }}
48+
{{- end }}
49+
{{- range $header := .Values.ui.nginxProxyPassHeaders }}
50+
- name: {{ printf "NGINX_PROXY_PASS_HEADER_%s" $header }}
51+
{{- end }}
4352
{{- else }}
4453
- name: REGISTRY_URL
4554
value: {{ .Values.ui.dockerRegistryUrl | quote }}

charts/docker-registry-ui/values.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,15 @@ ui:
3030
catalogElementsLimit: 100000
3131
# Expose custom labels in history page, custom labels will be processed like maintainer label.
3232
historyCustomLabels: []
33+
# Update the default Nginx configuration and **set custom headers** for your backend docker registry. Only when `ui.proxy` is used.
34+
# Example:
35+
# nginxProxyHeaders:
36+
# - my-heeader-name: my-header-value
37+
nginxProxyHeaders: []
38+
# Update the default Nginx configuration and **forward custom headers** to your backend docker registry. Only when `ui.proxy` is used.
39+
# Example:
40+
# nginxProxyPassHeaders: [ my-first-header, my-second-header ]
41+
nginxProxyPassHeaders: []
3342
# The name and tag of the docker image of the interface
3443
image: joxit/docker-registry-ui:2.2.1
3544
# Override default image pull secrets

0 commit comments

Comments
 (0)