Hi all. Due to the news of the illegal images being hosted on lemmy, I shut down my instance. I read some comments from people stating that they were able to selfhost lemmy without pictrs, they just can’t upload or cache photos. I think this is what I am interested in doing at this time.

I tried commenting out the pictrs section of my docker-compose.yml and removed the “depends on pictrs” sections. However, I get the error message in the attached screenshot when I go to my page.

Does anyone have any info on how to selfhost lemmy with image hosting completely disabled?

42 points

Pictrs should have been an optional microservice by default. Commenting here to keep track of this thread since this is useful.

permalink
report
reply
22 points

I agree! Or let us disable caching images from other instances. I’m not interested at all in rehosting images that other users on other instances upload. That’s too much of a legal liability to me.

permalink
report
parent
reply
10 points

Same thinking here. Caching media pretty directly undermines any Safe Harbor protections you have running a site, not to mention the resource overhead required.

permalink
report
parent
reply
7 points

I don’t understand why lemmy caches photos in the first place? Like surely it’s quicker, easier, and lower bandwidth to just store a url to the original source.

permalink
report
parent
reply
11 points

Lower bandwidth for who? When images are cached on other instances, it allows two things:

  • Load sharing. The original instance doesn’t have to serve the whole fediverse, but only its own users + 1 request per other lemmy instance.
  • Data availability through redundancy. If the original instance goes down, the cached image is still viewable on other instances.
permalink
report
parent
reply
3 points
*

My primary consideration is all the expensive storage filled up by vapid image macros. 80 GB goes a long way for just text.

permalink
report
parent
reply
44 points
*
14 points

Awesome! Thank you for this link!

permalink
report
parent
reply
12 points

Just a note that my PR there doesn’t disable pictrs for your own instance’s users. It just disables the caching of remote content.

permalink
report
parent
reply
16 points

That’s fine with me, as I’m the only user in my instance.

Though I do still think this is a huge miss on pictrs to not allow the admin to browse the photos stored on their own server. I mean, someone could upload an illegal photo, not post it, then send the URL that only they could possibly know to whichever relevant government agency anonymously and potentially ruin the life of the admin.

Thank you so much for contributing and making this much needed fix.

permalink
report
parent
reply
3 points

Great! This is awesome thank you so much!!

permalink
report
parent
reply
14 points

Yeah it’s been obvious and foreseeable that normal admins won’t have the bandwidth to handle takedown requests and cp spam attacks. Sadly the only stable state I see for the fediverse is relying on centralized content hosts that can handle those problems. Well, maybe until AI can do it

permalink
report
reply
3 points

Wouldn’t you only really need one(or a few) instance that could do the work and flag things for everyone?

permalink
report
parent
reply
1 point

Yeah I’ve envisioned sharable block lists that you can subscribe to similar to pihole. That’d be great

permalink
report
parent
reply
3 points

It sucks there’s no way to make use of the current csam blocklists except possibly if you’re a big enough instance since you can’t get access without approval. Instances going through cloudflare that use the cloudflare caching can use it through them but it only works on images it’s serving so wouldn’t block them being uploaded, just served to other instances.

permalink
report
parent
reply
0 points
*

Have you tried checking the logs of the lemmy container?

permalink
report
reply
2 points

You could just set the upload limit to 1kb?

permalink
report
reply
8 points

The caching is probably the problem, not the uploads on a personal lemmy instance.

permalink
report
parent
reply
6 points

I wrote a patch for Lemmy a week or so ago if you want to skip the caching: https://github.com/LemmyNet/lemmy/pull/3897

permalink
report
parent
reply
4 points

I hope this gets merged soon. Saves us on storage space and makes monitoring media uploads easier.

permalink
report
parent
reply

Selfhosted

!selfhosted@lemmy.world

Create post

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don’t control.

Rules:

  1. Be civil: we’re here to support and learn from one another. Insults won’t be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it’s not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don’t duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

Community stats

  • 4.8K

    Monthly active users

  • 3.5K

    Posts

  • 75K

    Comments