Retrieving the root page in the nova and glance APIs include
URLs for the various versions supported. These are by default
reported using unsecure URLs. Configure the services to report
a SSL-based URL instead.
Change-Id: I220757e53b94a5f6d19291371407220fdf54c645
... | ... |
@@ -154,6 +154,7 @@ function configure_glance { |
154 | 154 |
|
155 | 155 |
if is_service_enabled tls-proxy; then |
156 | 156 |
iniset $GLANCE_API_CONF DEFAULT bind_port $GLANCE_SERVICE_PORT_INT |
157 |
+ iniset $GLANCE_API_CONF DEFAULT public_endpoint $GLANCE_SERVICE_PROTOCOL://$GLANCE_HOSTPORT |
|
157 | 158 |
iniset $GLANCE_REGISTRY_CONF DEFAULT bind_port $GLANCE_REGISTRY_PORT_INT |
158 | 159 |
fi |
159 | 160 |
|
... | ... |
@@ -489,6 +489,7 @@ function create_nova_conf { |
489 | 489 |
if is_service_enabled tls-proxy; then |
490 | 490 |
# Set the service port for a proxy to take the original |
491 | 491 |
iniset $NOVA_CONF DEFAULT osapi_compute_listen_port "$NOVA_SERVICE_PORT_INT" |
492 |
+ iniset $NOVA_CONF DEFAULT osapi_compute_link_prefix $NOVA_SERVICE_PROTOCOL://$NOVA_SERVICE_HOST:$NOVA_SERVICE_PORT |
|
492 | 493 |
fi |
493 | 494 |
|
494 | 495 |
configure_auth_token_middleware $NOVA_CONF nova $NOVA_AUTH_CACHE_DIR |