templates/nginx/config/rubber/role/web_tools/nginx-tools.conf in rubber-2.8.0 vs templates/nginx/config/rubber/role/web_tools/nginx-tools.conf in rubber-2.8.1
- old
+ new
@@ -17,10 +17,10 @@
<%
Array(rubber_env.web_tools_proxies).each do |name, settings|
proxy_host = rubber_instances.for_role(settings.role).first.full_name rescue nil
next unless proxy_host
- host = "#{name}-#{rubber_env.full_host}"
+ host = "#{name.gsub('_', '-')}-#{rubber_env.full_host}"
host_and_port = "#{host}:#{rubber_env.web_tools_ssl_port}"
# don't use settings.path here - mapping the host/port is sufficient,
# and path can be done in tools-index.html. This allows admin sites
# that hit other paths on same host/port to still function, e.g. elasticsearch