Add osapi_compute_link_prefix to nova.conf

When a load balancer is used to terminate SSL, it generally
strips the https:// from the HTTP_HOST header and changes it
to http://. This is used by webob.Request as the request_url
that is then used by default when constructing link collections
in the OpenStack Compute API. Setting the osapi_compute_link_prefix
configuration option allows us to override the URI returned to
match the original compute endpoint URI.
This commit is contained in:
Jay Pipes
2013-05-13 14:20:49 -04:00
parent b60a3fab16
commit a8c79c8f84
2 changed files with 8 additions and 1 deletions

View File

@@ -131,7 +131,8 @@ template "/etc/nova/nova.conf" do
:glance_api_ipaddress => image_endpoint.host,
:glance_api_port => image_endpoint.port,
:iscsi_helper => platform_options["iscsi_helper"],
:scheduler_default_filters => node["nova"]["scheduler"]["default_filters"].join(",")
:scheduler_default_filters => node["nova"]["scheduler"]["default_filters"].join(","),
:osapi_compute_link_prefix => nova_api_endpoint.to_s
)
end