content: https://nextcloud.com/install/ may have the docs stuff your're looking for. You can set up OpenVPN to limit access while giving you access from basically anywhere. If you only have a few users generating certs per user may be good enough.