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?

  • redcalcium@lemmy.institute
    link
    fedilink
    English
    arrow-up
    26
    ·
    1 year ago

    For now, you can just route /pictrs/ path to 404 so nginx won’t serve any image from pictrs:

    location ^~ /pictrs/ {
        return 404;
    }
    
    • DandroidOP
      link
      fedilink
      English
      arrow-up
      4
      arrow-down
      1
      ·
      1 year ago

      Yes! This worked! Thank you!