Hacker Read top | best | new | newcomments | leaders | about | bookmarklet login

I have a project which runs a variety of sites for our network - currently ~900 different domains. Restricting keys by domain name is not really practical for us.


sort by: page size:

The entire argument is about sites where that is not possible.

Lets Encrypt has a limit of 20 domains per week for you.

So you end up with at most a few hundred users.


In fact they allow 99 or 100 or so domain names per certificate, which should be enough for most personal/side projects :-)

Caddy is designed for precisely this use case: https://caddyserver.com

It can handle thousands of domains easily, with Let's Encrypt (or any other ACME CA), even if you don't control your customer's domains.

Hit up the forums if you have any questions: https://caddy.community


You do but you would likely make a new key for this specific domain so you don't have to hand over any important keys.

Caddy can handle tens of thousands of domains. I know a couple of instances which do.

I'm currently using LS, but one of the problems I have is that it doesn't support wildcard domain rules. This means ephemeral hosts quickly build up a large number of rules which soon become redundant.

The idea is you can share credentials for any site/domain. So right now there are only 12, but there could be hundreds or thousands.

Seems like a great solution, I will test it for a few domains.

Multi domain registration could be nicer ;)


So use multiple domain names.

I suppose so, or maybe *.tld? Im thinking it would depend on your clients behavior. Clients dont go to that many unique fqdns, dynamic creation + caching should quite achievable.

That can definitely be better if you have full control over a domain. But what stopped me from going that far is dictionary attacks. There are plenty of spammers who will just try hundreds of common-ish addresses at a domain.

I considered going even further and building something where I'd register each new address as I gave it out, but for now, just adding a tag on to my regular address has been good enough for me.


Yes. Caddy is what we use, since not much else can do it as easily as Caddy can. And it's our go-to tool for several projects that require custom domains. And we really, really, appreciate it!

I'm just saying that it's not something that is documented well or purpose built for that scenario.


Possibly a good option, but I use DreamHost for shared hosting, and would like to keeps domains separate. Thanks, though!

So. The question I'm asking myself now is how to fix this. Giving <wildcard>.domain.com a shared quota will allow one tumblr or github pages user to monopolize all storage, effectively removing local storage for this kind of scenario (also removing it for the host which is even more annoying).

A maybe workable solution would be to only allow creation of new keys for the first-party origin. What I mean is that whatever.example.com has full access if that's what the user is currently viewing directly in their browser.

<wildcard>.example.com embedded via iframes could either get read-only access, or read-write access for existing keys. Also maybe limited to, lets say, 4K.

This sounds like a really complicated solution though. Any better ideas?


You still need a file to generate them. Unless you could get all the domains to point to the same documentroot or use a symlink or something.

Anyway, hosting companies like that massively oversell their capacity knowing that most people won't use it. If you actually tried to put up 30,000 (or, heck, even 300) active domains, the server would probably just die under the load.


Interesting idea, but if you are seeing the full list, what's stopping you from just assigning yourself to the domains that you want?

I was thinking about 1) and it seems like a really cool idea. If you could also query the sites trusted by some person, that would be like a HN with domains only to some extent (and if you can have any domain you want, you'd probably use one per site, rather than making a hierarchy again). Realistically I probably need only 20 or so domains on a typical day anyways, so that would only require trusting 5 or so other developers.

I launched a side-project to manage all the domain names I've registered over the years. This service provides a simple DNS records manager, an email account that covers all the domains, auto-generates LE certs and either serves a single page HTML website or redirects to a Github repo page. No limit how many domains added to account. https://projectpending.com/

I don't believe one of those cheap one's will work as they are only for one domain. The wildcard won't work as it's only for one domain with many subdomains. I want many domains with many subdomains.
next

Legal | privacy