VPN. You can even use the Wireguard VPN that all Ubiquiti routers have built in
I am running nginx proxy on my public IP on top of ubiquiti UNVR it works via headscale. But honestly I am super happy with their hardware and software but necessity to link your network to their cloud just be able to use 100% of features of my own hardware, make me want to sell the whole thing and buy something else.