Skip to content

Commit

Permalink
Merge pull request #676 from openshift-cherrypick-robot/cherry-pick-6…
Browse files Browse the repository at this point in the history
…75-to-18.0-fr1

[18.0-fr1] [httpd] Set X-Forwarded-Proto only if empty
  • Loading branch information
openshift-merge-bot[bot] authored Dec 18, 2024
2 parents ef3dc51 + d20ca7a commit 634823b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion templates/common/config/10-glance-httpd.conf
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@

## Request header rules
## as per http://httpd.apache.org/docs/2.2/mod/mod_headers.html#requestheader
RequestHeader set X-Forwarded-Proto "https"
{{- if $vhost.TLS }}
RequestHeader setIfEmpty X-Forwarded-Proto "https"
{{- else }}
RequestHeader setIfEmpty X-Forwarded-Proto "http"
{{- end }}

TimeOut {{ $vhost.TimeOut }}

Expand Down

0 comments on commit 634823b

Please sign in to comment.