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


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Support
  3. Monorepo using multiple domains

Monorepo using multiple domains

Scheduled Pinned Locked Moved Solved Support
multidomain
4 Posts 2 Posters 142 Views 3 Watching
  • 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.
    • E Offline
      E Offline
      ekevu123
      wrote last edited by joseph
      #1

      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.

      1 Reply Last reply
      1
      • nebulonN Offline
        nebulonN Offline
        nebulon
        Staff
        wrote last edited by nebulon
        #2

        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

        1 Reply Last reply
        3
        • J joseph marked this topic as a question
        • J joseph has marked this topic as solved
        • E Offline
          E Offline
          ekevu123
          wrote last edited by
          #3

          @nebulon Does the Cloudron healthcheck need to be implemented on root level only or per app?

          1 Reply Last reply
          0
          • nebulonN Offline
            nebulonN Offline
            nebulon
            Staff
            wrote last edited by
            #4

            Cloudron will call the app locally by the URL http://${app.containerIp}:${manifest.httpPort}${manifest.healthCheckPath} so by local container IP at the specified httpPort and healthCheckPath specified in the CloudronManifest.json. Any response with a 200 status code will be accepted.

            1 Reply Last reply
            1
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Bookmarks
              • Search