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
  • Brite
  • 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 - Status | Demo | Docs | Install
  1. Cloudron Forum
  2. Feature Requests
  3. Point arbitrary domains to a cloudron app?

Point arbitrary domains to a cloudron app?

Scheduled Pinned Locked Moved Feature Requests
6 Posts 5 Posters 53 Views 5 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.
  • rosanoR Offline
    rosanoR Offline
    rosano
    wrote last edited by
    #1

    How can I get a Cloudron app to receive requests without adding an alias?

    For example, I would like to setup cname.myapp.cloudron.domain and allow users of the app to point their domains there (i.e. a user can make a CNAME record for sub.theirsite.com to cname.myapp.cloudron.domain).

    In some way I'm asking an old question but instead of static files I want to deploy a node.js app that responds dynamically.

    1 Reply Last reply
    0
    • robiR Offline
      robiR Offline
      robi
      wrote last edited by
      #2

      The Cloudron Nginx would have to be made aware of the user subdomains.

      Conscious tech

      1 Reply Last reply
      0
      • J Online
        J Online
        joseph
        Staff
        wrote last edited by
        #3

        Technically, how will cloudron serve up a secure site without even knowing a domain? It won't have the certificate for this unknown dynamic domain.

        rosanoR 1 Reply Last reply
        0
        • J joseph

          Technically, how will cloudron serve up a secure site without even knowing a domain? It won't have the certificate for this unknown dynamic domain.

          rosanoR Offline
          rosanoR Offline
          rosano
          wrote last edited by
          #4

          @joseph said in Point arbitrary domains to a cloudron app?:

          Technically, how will cloudron serve up a secure site without even knowing a domain? It won't have the certificate for this unknown dynamic domain.

          True. I think I'm trying to emulate how PaaS platforms let you add a domain with https, but doing it at the app level instead of the platform (cloudron) level. I was thinking yesterday maybe the Cloudron API can add them and provision certificates behind the scenes.

          1 Reply Last reply
          0
          • fbartelsF Offline
            fbartelsF Offline
            fbartels
            App Dev
            wrote last edited by
            #5

            maybe the Cloudron API can add them and provision certificates

            But for that you need to add the domain to Cloudron in general and when/if a customer changes their dns settings to have the given domain no longer point to you, you will see failures to generate new certificates.

            At my work we also have a service where users can point domains via cname to our service (to enable auto discover for mail clients). What we are using for this is a caddy based webserver doing on demand tls, which then proxies the requests to our actual app.

            You can read more about it at https://caddyserver.com/on-demand-tls

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

              Not sure if I get the whole point, but is there a reason to not make that domain known by Cloudron? You can add it via the "manual" provider if you anyways manage those DNS records externally. If you add it, you can just set those domains in the app settings in your Cloudron dashboard and things should work as you want.

              1 Reply Last reply
              0
              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