set x-forwarded-port header for proxied requests

This is required for keystone federation to work correctly when
mod_auth_openidc.

Change-Id: Ib79fbd47169388bfb044a8183725a3d1de5bc480
Closes-bug: 1777884
(cherry picked from commit bf9a9620c6)
This commit is contained in:
Lars Kellogg-Stedman 2018-06-20 09:54:10 -04:00 committed by Luca Miccini
parent 7c96510dc4
commit 2b22b2b915
1 changed files with 2 additions and 1 deletions

View File

@ -862,7 +862,8 @@ class tripleo::haproxy (
'option' => [ 'httpchk', 'httplog', ],
'http-request' => [
'set-header X-Forwarded-Proto https if { ssl_fc }',
'set-header X-Forwarded-Proto http if !{ ssl_fc }'],
'set-header X-Forwarded-Proto http if !{ ssl_fc }',
'set-header X-Forwarded-Port %[dst_port]'],
}
Tripleo::Haproxy::Endpoint {
haproxy_listen_bind_param => $haproxy_listen_bind_param,