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

    Multiple user portal domains

    Support
    4
    9
    317
    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.
    • yusf
      yusf last edited by

      I use multiple domains from the same Cloudron instance. That means different user bases share the same instance, unknowingly of each other. However they still need to use the contextually unrelated my.myownunrelateddomain.tld for logins.

      Can I serve the user portal from multiple domains instead of having to choose one?

      murgero jdaviescoates 2 Replies Last reply Reply Quote 2
      • murgero
        murgero App Dev @yusf last edited by

        @yusf I don't think this is possible, but maybe buy a generic domain to use as the portal domain?

        Example:

        my.parentsite.tld ??

        Maybe?

        --
        https://urgero.org
        ~ Professional Nerd. Freelance Programmer. ~
        Matrix: @murgero:urgero.org

        yusf 1 Reply Last reply Reply Quote 0
        • yusf
          yusf @murgero last edited by

          @murgero Yeah, that’s what I do now. It’s too confusing. Users of a domain need to stay on that same domain at all times as they won’t understand the context of another one.

          murgero 1 Reply Last reply Reply Quote 0
          • murgero
            murgero App Dev @yusf last edited by

            @yusf Oh!

            Maybe add a CNAME

            my.domain2.com -> my.portal.tld

            The CNAME will redirect to my.portal.tld automatically allowing users to go to my.domain2.com

            --
            https://urgero.org
            ~ Professional Nerd. Freelance Programmer. ~
            Matrix: @murgero:urgero.org

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

              The CNAME trick won't work most likely because nginx (the reverse proxy) also needs to be configured. I think there might also be some other issue because the dashboard uses oauth2 which is tied to a domain. (@nebulon will know about it).

              @yusf Will the users just be normal/non-admin users?

              murgero yusf 2 Replies Last reply Reply Quote 0
              • murgero
                murgero App Dev @girish last edited by

                @girish @yusf
                Maybe install the LAMP app at my.domain.tld then put an index.html file in there which just simply redirects instead?

                --
                https://urgero.org
                ~ Professional Nerd. Freelance Programmer. ~
                Matrix: @murgero:urgero.org

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

                  @girish Yes, normal users.

                  @murgero The context switch of being redirected to a different domain is big enough to cause this confusion. So I’d need for users identifying with one domain to be able to stay on this domain throughout the whole user portal flow.

                  murgero 1 Reply Last reply Reply Quote 0
                  • murgero
                    murgero App Dev @yusf last edited by

                    @yusf You could use PHP to proxy my.domain2.tld to the main portal and use the header() function to replace the url/domain the client is on internally so the redirection never needs to happen.

                    --
                    https://urgero.org
                    ~ Professional Nerd. Freelance Programmer. ~
                    Matrix: @murgero:urgero.org

                    1 Reply Last reply Reply Quote 0
                    • jdaviescoates
                      jdaviescoates @yusf last edited by

                      @yusf said in Multiple user portal domains:

                      However they still need to use the contextually unrelated my.myownunrelateddomain.tld for logins.

                      Do they really though?

                      (I actually assume yes in your case, but just to tease out more info...)

                      I mean, users could just go to the apps directly and login there, no? i.e. I'm pretty sure my users can login directly at chat.uniteddiversity.coop without having login at my.uniteddiversity.org first.

                      What's the use case? Is it that you want them to have a dashboard with links to all their various apps? Or is this for users who are able to install more app on their domain etc? 🙂

                      I use Cloudron with Gandi & Hetzner

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