Why do people keep using Dropbox and others for syncm?!
Just use syncthing.
syncthing.org
Just use syncthing.
syncthing.org
I use Joplin with OneDrive and it works great. Setup was clicking a couple buttons. My employer provides me with 1 TB of storage. The free version gives you 5 GB and OneDrive standalone gives you 100 GB for $1.99 a month. I'm just a user but I'd encourage anyone to go the OneDrive route with Joplin rather than messing with Syncthing.
https://docs.syncthing.net/specs/untrusted.html
So you can set a node in the cloud and set an encryption key between two endpoints, and whichever nodes that have the directory synced but doesn't have the encryption key will never have access to the decrypted data.