this post was submitted on 15 Aug 2023
91 points (96.9% liked)

Lemmy Administration

698 readers
7 users here now

Anything about running your own Lemmy instance. Including how to install it, maintain and customise it.

Be sure to check out the docs: https://join-lemmy.org/docs/en/administration/administration.html

If you have any problems, describe them here and we will try to help you fixing them.

founded 4 years ago
MODERATORS
 

My pictrs volume got quite huge and I wanna delete pics cached from other instances. The thing is I'm not sure which pics are from my instance and which aren't, because they all have cryptic filenames. Anyone knows of a way to differentiate?

you are viewing a single comment's thread
view the rest of the comments
[–] skankhunt42@lemmy.ca 2 points 1 year ago (1 children)

I'm reading about this now. Thank you.

Do you put cloudflare between the VPS and Backblaze or is their website just referring to "CDN and compute partners" between the VPS and the end users? ... Or both?

[–] ticoombs@reddthat.com 3 points 1 year ago (1 children)

To get it completely free it would need to be:

  • cloudflare > vps
  • cloudflare > backblaze

Because Lemmy does not have a way to have all media served from a different url/subdomain (like a CDN). Your setup will be:

  • cloudflare > vps
    • vps > backblaze

Basically just put cloudflare infront of your vps, and cache everything.

That means if a user uploaded a 10MB file, it would go though your VPS, get uploaded to backblaze. When a user looks at the uploaded image url, on the first request it gets requested from blackblaze, via your vps, and then gets cached on Cloudflare.

Then any extra requests from then on will be via Cloudflare. So you will technically be charged for some api requests and 1x 10MB of egress traffic.

[–] skankhunt42@lemmy.ca 2 points 1 year ago* (last edited 1 year ago)

Sounds like a normal setup then. Just have CF in front of the VPS. Thanks!

I'm reading about Canadian hosting laws around user generated content and it doesn't seem like we have the same protections the US or EU has. I'm still reading but my big concern is legal trouble because of end users. If I don't selfhost for the community I'll offer to help an instance I like.

Thanks again!