+ base_domains = [site] + Array(aliases)
+ tile_domains = base_domains.flat_map { |d| [d, "a.#{d}", "b.#{d}", "c.#{d}"] }
+
+ ssl_certificate site do
+ domains tile_domains
+ end
+
+ resolvers = node[:networking][:nameservers].map do |resolver|
+ IPAddr.new(resolver).ipv6? ? "[#{resolver}]" : resolver
+ end
+
+ nginx_site site do