# I underestimated what "let users connect a custom domain" actually takes. Sharing what I learned. — retained record

> Retained reddit record from reddit:indiehackers.

Canonical: https://highsignal.app/data/records/e9a1980747b425d7

[← sources](https://highsignal.app/data)


source: [reddit](https://highsignal.app/data/reddit) (reddit:indiehackers)  published 2026-05-31 12:33 ingested 2026-06-01 11:12

[original source ↗](https://www.reddit.com/r/indiehackers/comments/1tsu4f7/i_underestimated_what_let_users_connect_a_custom/)

## extract

<!-- SC_OFF --><div class="md"><p>A friend asked me last week how hard it would be to add custom domains to his SaaS. I told him &quot;two weeks.&quot; He's now two months in and not done.</p> <p>This is the post I wish I'd had three years ago when I made the same mistake at my own company.</p> <p>What you actually have to build, in rough order of how soon it bites:</p> <ul> <li><strong>Multi-tenant TLS termination.</strong> A cert per customer hostname. Let's Encrypt has rate limits (50 new certs per registered domain per week, 5 duplicate certs per week, 300 pending authz). Hit them once and customer onboarding goes dark for days.</li> <li><strong>An ACME on-demand flow.</strong> Issuing certs ahead of time means knowing every customer hostname in advance. Issuing on first SNI hit means an &quot;ask the control plane if this hostname is legit&quot; loop before LE issues — otherwise an attacker can DoS your rate limit.</li> <li><strong>DNS validation.</strong> Customers paste a hostname, you give them a CNAME, you poll until it resolves. Cloudflare caches your NXDOMAIN for 30 minutes. Public resolvers don't. You learn this at 2am.</li> <li><strong>Renewal.</strong> ACME certs are 90 days. You need a renewal worker, retries, backoff, and per-customer failure alerts (because renewals will fail).</li> <li><strong>DNS drift.</strong> Customer flips on Cloudflare proxy 60 days after going live. Your renewal silently breaks. Cert expires. You don't notice until support pings about a 404.</li> <li><strong>Edge routing.</strong> The customer's hostname hits your edge, you look up which tenant owns it, you reverse-proxy. Latency budget is now critical because every customer request pays this hop.</li> <li><strong>A monitoring fleet.</strong> At 50 customers you can cron-check each one. At 5,000 you can't. You build sampling. You build alert ladders (30/7/1 day expiry). You build DNS drift detection. You add a Slack channel called #domains-on-fire.</li> </ul> <p>Each of those is a small project. Together they're a quarter of engineering, then ongoing care forever.</p> <p>I built this all myself the first time. Sold the SaaS, joined another company, watched the team there go through the same arc. Eventually built <strong>Domainee .dev</strong> so I'd stop watching engineers do this from scratch every other year.</p> <p>If you're at the start of this and your gut says &quot;two weeks,&quot; at least double the list above before you commit. The platform engineering eats more time than the user-facing feature.</p> <p>What did the rest of you learn the hard way?</p> </div><!-- SC_ON --> &#32; submitted by &#32; <a href="https://www.reddit.com/user/Jonathan_Geiger"> /u/Jonathan_Geiger </a> <br /> <span><a href="https://www.reddit.com/r/indiehackers/comments/1tsu4f7/i_underestimated_what_let_users_connect_a_custom/">[link]</a></span> &#32; <span><a href="https://www.reddit.com/r/indiehackers/comments/1tsu4f7/i_underestimated_what_let_users_connect_a_custom/">[comments]</a></span>

## retained text

No document body was retained for this record — only its metadata was stored.
