Skip to content

Commit c45ebb8

Browse files
committed
Fix #10: Automatically set ASPNETCORE_FORWARDEDHEADERS_ENABLED env var to true when using ingress
1 parent 772e377 commit c45ebb8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

charts/opc-router/templates/deployment.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,10 @@ spec:
9898
- name: OR_IMPORT_RUNTIME_CONFIGURATION_FILE
9999
value: "/data/project/{{ .Values.project.configPath }}"
100100
{{- end }}
101+
{{- if .Values.ingress.enabled }}
102+
- name: ASPNETCORE_FORWARDEDHEADERS_ENABLED
103+
value: "true"
104+
{{- end }}
101105
- name: OR_I_ACCEPT_EULA
102106
value: {{ .Values.I_do_accept_the_EULA | quote }}
103107
# Loading environment variables specified in the values file

0 commit comments

Comments
 (0)