diff --git a/templates/glance-api.conf.j2 b/templates/glance-api.conf.j2 index eb823175..52f8b267 100644 --- a/templates/glance-api.conf.j2 +++ b/templates/glance-api.conf.j2 @@ -12,6 +12,7 @@ http_keepalive = {{ glance_http_keepalive }} digest_algorithm = {{ glance_digest_algorithm }} backlog = 4096 workers = {{ glance_api_workers | default(glance_api_threads) }} +worker_self_reference_url = {{ (glance_backend_ssl | ternary('https', 'http')) ~ '://' ~ glance_api_bind_address ~ ':' ~ glance_api_service_port }} enable_v2_api = {{ glance_enable_v2_api | bool }} diff --git a/templates/glance-cache.conf.j2 b/templates/glance-cache.conf.j2 index 459e6143..d6ae3549 100644 --- a/templates/glance-cache.conf.j2 +++ b/templates/glance-cache.conf.j2 @@ -13,3 +13,4 @@ image_cache_stall_time = {{ glance_image_cache_stall_time }} image_cache_max_size = {{ glance_image_cache_max_size }} auth_url = {{ keystone_service_internalurl }} filesystem_store_datadir = {{ glance_system_user_home }}/images/ +worker_self_reference_url = {{ (glance_backend_ssl | ternary('https', 'http')) ~ '://' ~ glance_api_bind_address ~ ':' ~ glance_api_service_port }}