Skip to content

Commit

Permalink
Merge pull request #306 from fmount/for-prot
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 eb999cb + 7954f9f commit b0eb827
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion templates/swiftproxy/config/httpd.conf
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,11 @@ CustomLog /dev/stdout proxy env=forwarded

## 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 }}

LimitRequestBody 5368709122
LimitRequestFields 200
Expand Down

0 comments on commit b0eb827

Please sign in to comment.