Browse Source

Merge "Adds protocol to glance_cors_allowed_origin var"

Zuul 4 months ago
parent
commit
e8c4fdd48c
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      defaults/main.yml

+ 1
- 1
defaults/main.yml View File

@@ -193,7 +193,7 @@ glance_keystone_auth_plugin: password
193 193
 glance_image_cache_max_size: 10737418240
194 194
 
195 195
 # CORS options
196
-glance_cors_allowed_origin: "{{ (glance_show_multiple_locations | bool) | ternary(external_lb_vip_address, None) }}"
196
+glance_cors_allowed_origin: "{{ (glance_show_multiple_locations | bool) | ternary(openstack_service_publicuri_proto | default('http') + '://' + external_lb_vip_address, None) }}"
197 197
 # If ``glance_api_workers`` is unset the system will use half the number of available VCPUS to
198 198
 # compute the number of api workers to use.
199 199
 # glance_api_workers: 16

Loading…
Cancel
Save