diff --git a/templates/barbican.conf.j2 b/templates/barbican.conf.j2 index 5101bf8..9471bd6 100644 --- a/templates/barbican.conf.j2 +++ b/templates/barbican.conf.j2 @@ -8,9 +8,8 @@ use_stderr = False debug = {{ debug }} # Host name, for use in HATEOAS-style references -# Note: Typically this would be the load balanced endpoint that clients would use -# communicate back with this service. -host_href = {{ barbican_service_publicurl }} +# Note: This is cleared so that the auto-detected endpoint url is used. +host_href = transport_url = {{ barbican_oslomsg_rpc_transport }}://{% for host in barbican_oslomsg_rpc_servers.split(',') %}{{ barbican_oslomsg_rpc_userid }}:{{ barbican_oslomsg_rpc_password }}@{{ host }}:{{ barbican_oslomsg_rpc_port }}{% if not loop.last %},{% else %}/{{ _barbican_oslomsg_rpc_vhost_conf }}{% if barbican_oslomsg_rpc_use_ssl | bool %}?ssl=1&ssl_version={{ barbican_oslomsg_rpc_ssl_version }}&ssl_ca_file={{ barbican_oslomsg_rpc_ssl_ca_file }}{% else %}?ssl=0{% endif %}{% endif %}{% endfor %}