def traefik_domains(domains):
    """
    Create the traefik.frontend.rule label from the string of domains we use
    for templated Nginx/marathon-lb.
    """
    if not domains.strip():
        return ''
    return 'Host: %s' % (', '.join(domains.split()),)
