Switch horizon to direct upload mode to glance
This patch switches horizon to direct upload mode to glance.
It will prevent horizon from caching user image on proxy node.
Disable caching for glance site on proxy node.
Enable CORS in glance with allowed origins set to horizon URL.
Parametrize horizon proxy settins:
* horizon_public_host
* horizon_public_port
* horizon_public_protocol
Related-Prod: PROD-24536
Change-Id: Ie2ff8b58c352584d076e0c85bd033dc8fe52ee89
diff --git a/nginx/server/proxy/openstack_web.yml b/nginx/server/proxy/openstack_web.yml
index b85527f..a9a4894 100644
--- a/nginx/server/proxy/openstack_web.yml
+++ b/nginx/server/proxy/openstack_web.yml
@@ -25,9 +25,9 @@
buffer:
${_param:nginx_proxy_openstack_web_buffer_size}
host:
- name: ${_param:nginx_proxy_openstack_web_host}
- port: 443
- protocol: https
+ name: ${_param:horizon_public_host}
+ port: ${_param:horizon_public_port}
+ protocol: ${_param:horizon_public_protocol}
ssl: ${_param:nginx_proxy_ssl}
nginx_ssl_redirect_openstack_web:
enabled: true