Comment on domain name with your own name?
shadowbert@kbin.social 1 year ago
I host some private stuff on mine, hidden behind an authentication service that is. But because I just use a wildcard no-one can really tell what I have hosted - the same login page occurs for every subdomain, regardless of whether it's actually wired up to something.
That doesn't help with services you wish to make semi-public (like a lemmy instance) though.
SwissOS@sh.itjust.works 1 year ago
Interested in learning about the wildcard. How do you set up the DNS to accept that?
shadowbert@kbin.social 1 year ago
I'm using cloudflare as my DNS, and it's literally just:
On the letsencrypt side, it's pretty similar. Create a certificate with
doman.name
and*.domain.name
(if you want them to share a cert) and you're off.Perhyte@lemmy.world 1 year ago
I have a similar setup.
Getting the DNS to return the right addresses is easy enough: you just set your records for subdomain
*
instead a specific subdomain, and then any subdomain that’s not explicitly configured will default to using the records for*
.Assuming you want to use Let’s Encrypt (or another ACME CA) you’ll probably want to make sure you use an ACME client that supports your DNS provider’s API (or switch DNS provider to one that has an API your client supports). That way you can get wildcard TLS certificates (so individual subdomains won’t still leak via Certificate Transparency logs). Configure your ACME client to use the Let’s Encrypt staging server until you see a wildcard certificate on your domains.
Some other stuff you’ll probably want: