code: function(services) {
  
      return _.map(services, function(service) {
  
        // Start with a hostnames collector
        var hostnames = [];
  
        // Handle 'default' key
        if (service.default) {
          hostnames.push(app.name);
        }
  
        // Handle legacy 'hostname' key
        if (service.hostname) {
          hostnames.push([service.hostname, app.name].join('.'));
        }
  
        // Handle 'subdomains'
        if (service.subdomains) {
          _.forEach(service.subdomains, function(subdomain) {
            hostnames.push([subdomain, app.name].join('.'));
          });
        }
  
        // Handle 'custom'
        if (service.custom) {
          _.forEach(service.custom, function(url) {
            hostnames.push(url);
          });
        }
  
        // Determine whether the protocol is http or https
        var protocol = (service.secure) ? 'https://' : 'http://';
  
        // Return an array of parsed hostnames
        return _.map(hostnames, function(hostname) {
          return protocol + [hostname, app.domain].join('.');
        });
  
      });
  
    }
docs: /*
  Helper to parse services data into urls