When you upload an image in the URL bar when creating a post, where does it go? Are they hosted on the respective Instance of the community?

  • yes, they are hosted on the server that is running the Lemmy instance. But every other instance that is linked to that instance will ‘scrape’ all posts incl images and store them on they’re own server. So posts and images are served from the instance you yourself are a member of

  • If you run the normal Ansible setup, there’s one docker container running pictrs that’s going to handle the image uploads. By default, it stores it into a volume that comes from the server’s filesystem. So when you upload an image, it gets stored to the server’s file system with the default settings.

    Pictrs supports object storage, and you can get it to store the images to any S3 compatible storage.

      • Btw, if somebody here makes an instance with pictrs sending data to S3, it would be really cool if you would document it and write a guide how to enable it with a common Ansible deployment. It seems that the docker image doesn’t take any environment variables, or at least there is no documented way how to turn on the object storage using the pictrs docker image. Maybe it’s not implemented yet, and somebody needs to fork the docker image…

        •  tjr   ( @tjr@innernet.link ) 
          link
          fedilink
          English
          11 year ago

          I’ve never used CF for object storage, I personally use Backblaze B2, it’s pricing is extremely fair. If anyone needs object storage, it is something to consider, I am not sure how it compares to cloudflare though. There unfortunately isn’t much documentation on config vars for object storage on lemmy/pict-rs I am still looking into this.

          • For most of the self-hosters here, Cloudflare will be free. I know many Mastodon and Akkoma users using Backblaze, so it’s probably a good option too. I use it for my backups, and but not with their S3 API.

  • My understanding is that images don’t federate by default and you’ll load the image from whichever server it was uploaded to initially. Uploading an image here in the comment certainly does that:

    This post that shows in my instance loads it’s image from feddit.uk, even when it shows on my own instance rather than on this URL:

    https://feddit.uk/post/5813

    Looking at the federation docs, I’m pretty confident that a link to the image is the only thing going through. If someone uploads that on the server directly, that’ll be a link to that server, but it may be a link to Imgur or something too.