def _generate_site_config(dns_name, site_domain, devstack=False):
    """ Generate the site configuration for a given site """
    if devstack:
        lms_url_fmt = "{domain}-{dns_name}.e2e.devstack"
    else:
        lms_url_fmt = "{domain}-{dns_name}.sandbox.edx.org"

    return {
        "lms_url": lms_url_fmt.format(domain=site_domain, dns_name=dns_name),
        "platform_name": f"{site_domain}-{dns_name}"
    }