Allow to create sub domains
Currently, it's already possible for users to add a custom domain to their application. This works straightforward where you add a domain by going to the application settings, the domains section and then click on new domain. Our users have these domains under their own management, and they are provided with DNS record settings to connect it to the Baserow server.
To make it easier for our users to deploy their application, we also want to allow them to add a subdomain to their application. These must make it effortless to deploy an application. No DNS configuration should be needed.
We would like to introduce an environment variable called BASEROW_BUILDER_DOMAINS
. It should accept multiple domains separated by comma, so for example baserow.site,baserowsite.app
. The domains are shared throughout the Baserow system, and every user can choose a subdomain for these domains bramscompany.baserow.site
. We must somewhere add instructions that the added domain must have a wildcard DNS record like *.baserow.site
pointing to the Baserow server.
From a technical point of view, we probably want to introduce a registry that can handle domains if that makes sense. So we would end up with a custom_domain
and sub_domain
type, which each have their own create domain form, and can have some influence in the published domain to application lookup.