Skip to content

Commit

Permalink
Fixed deprecated PROXY configuration with new PROXY_HEADERS config
Browse files Browse the repository at this point in the history
Signed-off-by: Hans Erik Heggem <[email protected]>
  • Loading branch information
hansehe committed Jun 24, 2024
1 parent 0c25292 commit aadeb66
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
1 change: 0 additions & 1 deletion charts/keycloakx/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ $ cat << EOF > values.yaml
command:
- "/opt/keycloak/bin/kc.sh"
- "start"
- "--http-enabled=true"
- "--http-port=8080"
- "--hostname-strict=false"
extraEnv: |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ command:
- "/opt/keycloak/bin/kc.sh"
- "--verbose"
- "start"
- "--http-enabled=true"
- "--http-port=8080"
- "--hostname-strict=false"
- "--spi-events-listener-jboss-logging-success-level=info"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ command:
- "/opt/keycloak/bin/kc.sh"
- "--verbose"
- "start"
- "--http-enabled=true"
- "--http-port=8080"
- "--hostname-strict=false"
- "--spi-events-listener-jboss-logging-success-level=info"
Expand Down
6 changes: 5 additions & 1 deletion charts/keycloakx/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,13 @@ spec:
value: "kubernetes"
{{- end }}
{{- if .Values.proxy.enabled }}
- name: KC_PROXY
- name: KC_PROXY_HEADERS
value: {{ .Values.proxy.mode }}
{{- end }}
{{- if .Values.proxy.http.enabled }}
- name: KC_HTTP_ENABLED
value: "true"
{{- end }}
{{- if .Values.database.vendor }}
- name: KC_DB
value: {{ .Values.database.vendor }}
Expand Down
4 changes: 3 additions & 1 deletion charts/keycloakx/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,9 @@ cache:

proxy:
enabled: true
mode: edge
mode: forwarded
http:
enabled: true

metrics:
enabled: true
Expand Down

0 comments on commit aadeb66

Please sign in to comment.