I love to use Joplin to organize my notes. To synchronize the notes between different devices I have so far used the WebDAV sync option together with ownCloud 10. Now oCIS (ownCloud Infinite Scale) is the new cool kid in the cloud storage space and I would like to use it for syncing of Joplin.
Similar to ownCloud 10, oCIS offers a WebDAV API, but it has disabled basic-auth by default and the docs discourage using it in production. Instead, oCIS implements the OIDC workflow for authentication. I tried to get the OIDC authentication into Joplin, but sadly my PR for that was refused.
The workaround is the "Share via link" function of oCIS. The generated links support basic-auth by default. (Don't fear your notes will still be very private).
- create a folder in oCIS (I've called it
joplin
) - click on the "Add people" button of that folder, that will bring you to the sharing functions
- you should see the "Share via link" function
- create a new link
- change the permissions to "Anyone with the link can edit"
- additionally set a password
- to configure Joplin, open its synchronisation settings and:
- select "WebDAV" as "Synchronisation target"
- copy the last bit of the link URL (everything after the last
/
), this is your "public-link-token" - compose the "WebDAV URL" like
<ocis-base-URL>/remote.php/dav/public-files/<public-link-token>
- use the "public-link-token" as "WebDAV username"
- add your password into the "WebDAV password" field
DONE!
To access your notes, one would need to know the random link AND your self selected password - so it should be pretty safe.
You could even have a different link, with a different password for every device you are using, so if you lose one device you would only have to delete that link to stop further syncing.
Top comments (2)
Thanks for sharing! I think it's important to mention the path before the username needs to be
/remote.php/dav/public-files/
(replacing the/s/
) -- You showed this in your screenshots, but omitted it from the write-up.@etho201 thank you for your comment, that is entirely true, I've updated the post accordingly. I hope that makes it now easier to understand