We were doing this long before OwnCloud/NextCloud had any concept of federation.
Just some links for the bold and audacious soul who may want to try their hand...