That’s what I did:
- There is
*.selfhosting.domain.tld
that points to my router’s IP address, which then redirects to an nginx+certbot reverse proxy - Then there is
*.local.domain.tld
that points to my local IP with Caddy
The only challenging part was to configure Caddy to issue SSL certificates using the DNS challenge since *.local.domain.tld
isn’t exposed to the outside world.
EncryptKeeper@lemmy.world 1 year ago
Or just louse one, and then run a local DNS resolver like pihole or AdGuard home and just make a record for the same host locally. The local DNS resolver will resolve the local request before it reaches the public DNS.