Can I have Yunohost serving osba.nl on a VPS, and nextcloud.osba.nl on a server on my home network, and have them agree with each other on user accounts and such?
My ISP used to offer a small IPv4 subnet, but decided it was not in their business interests to have people running too many servers at home and cancelled the service.
So, from one day to the other, we didn’t receive email anymore, telephones could not back up photos to Nextcloud and websites could not be reached anymore.
Now most of the Yunohosts run each on a small VPS, but for Nextcloud that is not an option. I was hoping to use my homeserver as storage device for the Nexctloud portion of the Yunohosts, and prefer to have a Nexctloud installation per domain as it was until recently (so that each can manage their own Nextcloud installation as part of their Yunohost). Those options come to mind:
- Don’t install Yunohost on a VPS, but only use the VPS to create a tunnel to the home network to make the IPv4 available;
- Install the main domain (osba.nl) on the VPS, and install the Nextcloud instance on a separate Yunohost in the home LAN under nexctloud.osba.nl;
- Install all on the VPS, osba.nl as well as nextcloud.osba.nl, and use SSHFS to mount a directory on my home server on /home/yunohost.app/nextcloud/data/ to offload the files. I would probably need to do the same for the MySQL filecache, but do not look forward to the performance penalty (if MySQL allows me to do that anyway).
No. 2 seems easiest to install, using a backup of one Yunohost to post-install the other so that users are identical. Still, I expect headache when new users are added to the external or the internal Yunohost.
Would I need some kind of mirroring for the base system on both sides, and add non-mirrored applications on top of that?
The reason for this difficult way is that I don’t know how to serve multiple domains for email, XMPP and Matrix on their individual ports from a single IPv4 and I prefer not to disable IPv4 and use IPv6 only for these servers. Everything on VPS is not an option because the price would be too high.