7
12 Comments

Saas - linking custom domain name by use to his subdomain in the saas app

Hello Indiehackers,

It feels so good to be part of this great community. We're building one saas app and stuck with custom domain name linking to the user's page.

For example, ourawsomesaas.com users sign up and their accounts will be like user1.ourawesomesaas.com , user2.ourawesomesaas.com, etc.

Now we want to add the feature of using their custom own domain like user1.com, user2.io, etc.

However, the only issue we're facing is how to link it without ourawesomesaas.com IP address?

Except for instapage.com which is using secure.pageserve.co everyone else is asking their users to map the C Name or A record towards their IP.

Can someone shed some light on this? Thanks in advance.

PS: Our tech stack is Django, Postgres, Nginx, React. Of course, it doesn't matter in this case as I assume.

on November 4, 2019
  1. 2

    There is a saas product solving this kind of problem. They provide you adding custom domain to your server via graphql mutation and also they provide you with wildcard sub domain. I used it with my saas product that is currently building.

    checkout this in
    render.com

    the api with adding custom domain to server
    https://render.com/docs/api

  2. 2

    For https://versoly.com/ we have custom domains for our customers.

    We have a cname pointed from dns1.versoly.com to our server IP. So if our IP does change all we need to do is repoint the dns1 and not ask all customers to change it.

    If you find a better solution @ me :) I'm not really a dev ops person.

    Also this solution doesn't work for godaddy, one more reason to hate them.

    1. 3

      Thanks volkandkaya for the kind reply. BTW congrats for awesome saaspages and versoly. I have been following you for a while. Thanks a lot.

      1. 1

        Thanks trying to share the story a lot more than my old SaaS startup. Seems be working for now :)

        1. 1

          :-) Are you using any dns provider like cloudfare for versoly? Also, How are you managing for the customers who had their domains with Godaddy?

          1. 1

            No, we most likely should look into one, but are current system works perfectly for now.

            We tell them to sign up for a free account at https://www.netlify.com/ and use that for DNS, go-daddy is terrible.

  3. 1

    If anybody from the future ends up here looking for an easy way to implement custom domains, check out https://approximated.app (I'm the founder). It reliably serves hundreds of thousands of custom domains as of today, it's super easy to get up and running with your app the same day, and it starts at $20/month with a 7 day free trial.

    1. 1

      This has painfully slow load times.

      1. 1

        Do you mean the landing page, the dashboard, or custom domains running through it? Wondering so that I can fix it or provide support.

        1. 1

          Sent you email and DM Carter. Awaiting your reply. Cheers.

        2. 1

          <VirtualHost *:443>
          ServerName vendorscustomdomain.com
          ServerAlias www.vendorscustomdomain.com
          ProxyPreserveHost On
          ProxyPass / https://sassdomain.com/home?vendor=vendorid/
          ProxyPassReverse / https://sassdomain.com/home?vendor=vendorid/
          SSLCertificateFile /path/to/ssl/certificate.crt
          SSLCertificateKeyFile /path/to/ssl/private.key
          SSLCertificateChainFile /path/to/ssl/ca-bundle.crt
          </VirtualHost>

          Is this possible to be set up via approximated ?

        3. 1

          The custom domains ofcourse, thanks for the prompt revert.

Trending on Indie Hackers
I'm a lawyer who launched an AI contract tool on Product Hunt today — here's what building it as a non-technical founder actually felt like User Avatar 151 comments Never hire an SEO Agency for your Saas Startup User Avatar 85 comments A simple way to keep AI automations from making bad decisions User Avatar 65 comments “This contract looked normal - but could cost millions” User Avatar 54 comments 👉 The most expensive contract mistakes don’t feel risky User Avatar 41 comments We automated our business vetting with OpenClaw User Avatar 34 comments