silverbulletmd / silverbullet

The knowledge tinkerer's notebook
https://silverbullet.md
MIT License
2.56k stars 188 forks source link

minio / s3 media backend #519

Open v411e opened 1 year ago

v411e commented 1 year ago

I use silverbullet together with the great ghost-plug to publish my blog posts. This is very cool and I love this workflow. However, adding images is not that easy. When uploading them to silverbullet, they are not accessible without authentication. Normally, this is exactly what you want. But when writing a blog post, I want the images to be accessible for everyone on the internet.

Currently, I upload the images to a selfhosted PicoShare instance and add them to my post via link. This is a bit hacky and not very convenient.

HedgeDoc has a feature called "Media Backend" which is about exactly what I would wish to have in silverbullet. Pictures are directly uploaded into a minio/s3 bucket. The resulting link with a random, long ID would be available for anyone that knows the exact link and also for those visiting my ghost blog.

What do you think about such a feature?

zefhemel commented 1 year ago

Yeah, I never got around to implement the image upload part of the Ghost plug, probably because I don't use images enough myself. An alternative solution here is to actually have the Ghost plug support images and just upload them via the Ghost API which I'm sure is possible. I'd have to look into the details.

v411e commented 1 year ago

Oh yes, that's maybe even better :) I might also have a look into the API.

Using the Ghost API would also enable us to easily set descriptions to images, which currently only works using html snippets