Skip to content

Commit

Permalink
Merge pull request #675 from fmount/forward-proto
Browse files Browse the repository at this point in the history
[httpd] Set X-Forwarded-Proto only if empty
  • Loading branch information
openshift-merge-bot[bot] authored Dec 18, 2024
2 parents feddbb7 + a6695a3 commit becf317
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 becf317

Please sign in to comment.