Skip to content

feat: Add custom domain management tab to superadmin:#3602

Merged
isTravis merged 2 commits intomainfrom
tr/domainadmin
Apr 23, 2026
Merged

feat: Add custom domain management tab to superadmin:#3602
isTravis merged 2 commits intomainfrom
tr/domainadmin

Conversation

@isTravis
Copy link
Copy Markdown
Member

New superadmin dashboard tab for managing community custom domains. Allows viewing all communities with custom domains, adding a new custom domain (by community ID or subdomain), and removing existing ones.

Adding/removing a domain updates both the community's domain field in the database and the corresponding Cloudflare custom hostname entry via the Custom Hostnames API. The page also includes a copyable CNAME instructions message (custom-domain-1.pubpub.org) for sending to users.

Changes:

  • New Custom Domains tab in the superadmin dashboard
  • POST /api/superadmin/custom-domains — set a custom domain for a community + add to Cloudflare
  • DELETE /api/superadmin/custom-domains — remove a custom domain from a community + Cloudflare
  • New CLOUDFLARE_CUSTOM_HOSTNAME_API_TOKEN env var (requires zone-scoped SSL and Certificates: Edit permission; reuses existing CLOUDFLARE_ZONE_TAG for the zone ID)

@isTravis isTravis merged commit d024383 into main Apr 23, 2026
1 check passed
@isTravis isTravis deleted the tr/domainadmin branch April 23, 2026 01:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant