Umbrel + Nextcloud + Ngrok on VM
First you need to install Debian in VirtualBox(I installed without graphics, but be sure to check SSH for convenience)
https://cdimage.debian.org/debian-cd/current/amd64/iso-cd/debian-12.2.0-amd64-netinst.iso
Then install Umbrella
su
apt install sudo
usermod -aG sudo user
sudo curl -L https://umbrel.sh | bash
Install Nextcloud in Umbrella and look at the address in the settings( Personal Settings - Mobile & Desctop - Server address)
Now you need to install Ngrok(Go to the site, log in and copy authtoken, ngrok - Online in One Line here you can add static domain for free)
curl -s https://ngrok-agent.s3.amazonaws.com/ngrok.asc | sudo tee /etc/apt/trusted.gpg.d/ngrok.asc >/dev/null && echo “deb https://ngrok-agent.s3.amazonaws.com buster main” | sudo tee /etc/apt/sources.list.d/ngrok.list && sudo apt update && sudo apt install ngrok
ngrok config add-authtoken
ngrok http 80 --domain=[static-domain] ‘nextcloudaddress:port’
Now open link from Ngrok and Log in into Nextcloud
P.s If the Nextcloud application throws an HTTPS error, then write [‘overwriteprotocol’ => ‘https’,] in config.php , also enter your ngrok address in trusted_domains, in order to find the location config.php do:
sudo find / -name config.php