n[:letsencrypt][:certificates].each do |name, details|
c[name] ||= details.merge(:nodes => [])
- c[name][:nodes] << { :name => n[:fqdn], :address => n.external_ipaddress }
+ c[name][:nodes] << {
+ :name => n[:fqdn],
+ :address => n.external_ipaddress || n.internal_ipaddress
+ }
end
end