Nettakrim / Signed-Paintings

12 stars 2 forks source link

Self hostable image sharing service #14

Closed robotter112 closed 2 weeks ago

robotter112 commented 4 months ago

I encountered the problem that Imgur blocked the IP address of some players and the images would not load for them. That's why I came up with the idea of running an image sharing service myself, such as Picsur https://github.com/CaramelFur/Picsur, to give people maximum fun and freedom. Do you think that would be feasible as Picsur also has an API interface.

robotter112 commented 3 months ago

Another cool alternative would be https://github.com/chibisafe/chibisafe

BondarenkoArtur commented 2 weeks ago

@robotter112 You already can do that. Just add your domain into config file that is located at config/signed_paintings.txt But you will need to add it for every client, otherwise image will not be shown.

It's better not to add self-hosted solutions to default list, as it might be security concern.

BondarenkoArtur commented 2 weeks ago

Here is example. I've added https://avatars.githubusercontent.com/ to the list

And here is your avatar showing without uploading to imgur Screenshot_20240619_173612 Screenshot_20240619_173534

Nettakrim commented 2 weeks ago

i also probably wont be adding an ingame command to modify the allowed url domains, since the format isnt really intuitive

BondarenkoArtur commented 2 weeks ago

I guess we can close it then