My goal is to be able to access my nextcloud server from LAN at home, from WAN for foreigners and from VPN (wireguard server on router) for family members with the DNS name, e.g. https://mynextcloud.com.
From WAN it works with a port forward.
From LAN I have setup a dns rewrite with Adguardhome.
And with VPN it doesn't work. Which do I need to change to make it work with all three?
I found out that I changed my wireguard client settings. I removed the DNS entry and that is why it did not work anymore. I added it again and voilà it is working again. Thank you for your time and have a nice day!