I have read many posts in this subreddit and so many recommend using a domain (buying it) and then registering DNS.
Maybe I misunderstood because I’m new, but in theory isn’t it enough to use a DNS in lan like pihole, and then from the client browser using Wireguard simply write the domain defined on pihole? (Maybe even configuring nginx to have all the ports pointing to the correct services)
Am I wrong?
SSL is the main reason, this way your traffic is encrypted from snoopers on your land, and you don’t get the warning messages about it not being secure.
You can use a sub domain from desec for free to do this.