Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Using domain alias for more apps

    Support
    domains aliases multi-tenant
    3
    7
    242
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      sclemens last edited by girish

      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.tld

      domain2.tld
      -> cloud.domain2.tld
      -> analytics.domain2.tld

      and so on. But I can't setup domain alias for more apps except wordpress.

      Is there a way doing this?

      Kind regads
      Sebastian

      girish 1 Reply Last reply Reply Quote 0
      • micmc
        micmc last edited by micmc

        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.


        https://marketingtechnology.agency
        For cutting edge web technologies

        1 Reply Last reply Reply Quote 0
        • girish
          girish Staff @sclemens last edited by

          @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.

          1 Reply Last reply Reply Quote 3
          • girish
            girish Staff last edited by

            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.

            micmc 1 Reply Last reply Reply Quote 1
            • micmc
              micmc @girish last edited by

              @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.


              https://marketingtechnology.agency
              For cutting edge web technologies

              girish 1 Reply Last reply Reply Quote 1
              • girish
                girish Staff @micmc last edited by

                @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).

                1 Reply Last reply Reply Quote 1
                • S
                  sclemens last edited by

                  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.

                  1 Reply Last reply Reply Quote 1
                  • First post
                    Last post
                  Powered by NodeBB