Using domain alias for more apps
-
Hello,
I use domain alias for a wordpress multisite setup. Now I want to do this with more apps (like nextcloud, matomo) to have it as follows:
domain1.tld
-> cloud.domain1.tld
-> analytics.domain1.tlddomain2.tld
-> cloud.domain2.tld
-> analytics.domain2.tldand so on. But I can't setup domain alias for more apps except wordpress.
Is there a way doing this?
Kind regads
Sebastian -
You might be using the free version which is limited to only using two apps at the time.
Otherwise, unless I'm missing something you should be able to structure your domain names and apps the way you stated it.
Huh, that's assuming you are installing a new app instance for each sub-domain, of only WP works as multisite mode afaik.
-
@sclemens The domain alias flag is added to the app packages on a case by case basis. This is done because the app has to explicitly support "multi-tenancy" for domain aliases to work as a user expects i.e going to each domain has their set of users/permissions/data etc. WP supports this via multi-site. Some apps like kutt allow for some fancy domain setups.
In general, as @micmc pointed out, there is no real benefit of multi-tenant setup on Cloudron. You can just install an app instance for each subdomain. Since the docker images is the same, things don't take up any more space. You can better control of resources/cpu/memory/storage, can rollback/update separately when you have separate app instances.
-
Out of curiosity, I did investigate the two apps in question.
-
Nextcloud - https://github.com/nextcloud/all-in-one/issues/49, https://help.nextcloud.com/t/can-nc-be-multi-tenant/37171 and https://help.nextcloud.com/t/single-codebase-for-multiple-vhosts/413 suggests it doesn't support it inherently. So, it's best to just have multiple separate nextcloud installations.
-
Matomo - There's some info here - https://developer.matomo.org/guides/multi-tenants . But one requirement is multiple databases - "For Multi Tenant setup to work every tenant should have its own database schema" . While an app can have multiple databases on Cloudron, we have to investigate if it's worth the trouble of supporting such a setup.
-
-
@girish said in Using domain alias for more apps:
Out of curiosity, I did investigate the two apps in question.
- Nextcloud -
While an app can have multiple databases on Cloudron, we have to investigate if it's worth the trouble of supporting such a setup.
Which if 'works' well, imho would require a big chunk of resources, better be aware of that as well.
- Nextcloud -
-
@micmc said in Using domain alias for more apps:
Which if 'works' well, imho would require a big chunk of resources, better be aware of that as well.
yes, indeed. So, resource wise, it consumes the same as 2 separate app instances (roughly.. ignoring some extra apache processes).
-
Thanks for your investigations!
In general, as @micmc pointed out, there is no real benefit of multi-tenant setup on Cloudron.
The biggest benefit I see is a clean dashboard. I did such a setup on other hosting platforms and never had trouble with that.
While an app can have multiple databases on Cloudron, we have to investigate if it's worth the trouble of supporting such a setup.
Yes, I'm wondering this request is so rare.
-
-
-
-