Monorepo using multiple domains
-
Using Elixir, I want to build a monorepo (which means, I have technically one app) with different shared apps inside that should utilise shared code, but be reachable with different domains all the time.
In my understanding, I simply configure the domains for the app in Cloudron and then the app itself handles the domain routing? Or is there anything I am missing?The goal is to have multiple customer-facing apps using multiple domains within one single Cloudron application, but for the user, they should appear completely separated.
-
You are on the right track, the app would inspect the
host
header to know from which domain the request came in from and then handle it accordingly.On Cloudron you have to set the multiDomain flag in the manifest also https://docs.cloudron.io/packaging/manifest/#multidomain
-
-