Merge "Add passing of X-Forwarded-Proto to Glance API endpoint"

This commit is contained in:
Jenkins 2016-08-07 11:14:42 +00:00 committed by Gerrit Code Review
commit c4360efdc8

View File

@ -602,6 +602,12 @@ class tripleo::haproxy (
ip_addresses => hiera('glance_api_node_ips', $controller_hosts_real),
server_names => $controller_hosts_names_real,
public_ssl_port => $ports[glance_api_ssl_port],
mode => 'http',
listen_options => {
'http-request' => [
'set-header X-Forwarded-Proto https if { ssl_fc }',
'set-header X-Forwarded-Proto http if !{ ssl_fc }'],
},
}
}