Unhardcode nginx proxy backend portocol for openstack
This patch unhardcode backend protocol for nginx openstack services.
Change-Id: I79f86a0f71c0c3d686027df20ea40253f2426ac3
diff --git a/nginx/server/proxy/openstack/gnocchi.yml b/nginx/server/proxy/openstack/gnocchi.yml
index 2f6d0e5..6169648 100644
--- a/nginx/server/proxy/openstack/gnocchi.yml
+++ b/nginx/server/proxy/openstack/gnocchi.yml
@@ -3,6 +3,7 @@
nginx_proxy_openstack_api_host: ${_param:cluster_public_host}
nginx_proxy_openstack_api_address: 0.0.0.0
nginx_proxy_openstack_gnocchi_host: ${_param:gnocchi_service_host}
+ nginx_proxy_openstack_gnocchi_protocol: 'http'
nginx:
server:
enabled: true
@@ -15,7 +16,7 @@
proxy:
host: ${_param:nginx_proxy_openstack_gnocchi_host}
port: 8041
- protocol: http
+ protocol: ${_param:nginx_proxy_openstack_gnocchi_protocol}
host:
name: ${_param:nginx_proxy_openstack_api_host}
port: 8041