this post was submitted on 16 Sep 2025
214 points (99.1% liked)

Fediverse

36891 readers
769 users here now

A community to talk about the Fediverse and all it's related services using ActivityPub (Mastodon, Lemmy, KBin, etc).

If you wanted to get help with moderating your own community then head over to !moderators@lemmy.world!

Rules

Learn more at these websites: Join The Fediverse Wiki, Fediverse.info, Wikipedia Page, The Federation Info (Stats), FediDB (Stats), Sub Rehab (Reddit Migration)

founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] jeena@piefed.jeena.net 1 points 3 days ago (1 children)

I also put the video itself into a S3 bucket, so PeerTube basically only has to show the meta data and the comments from my server, so kind of like what Mastodon or Lemmy/PieFed has to do. I just had a look at the [PeerTube nginx config((https://github.com/Chocobozzz/PeerTube/blob/develop/support/nginx/peertube) but couldn't see anything there which would do caching, so I assume the app does it's own caching somewhere.

For my website, which is a rails application, I did

proxy_cache_path /var/lib/nginx/cache/jeena.net keys_zone=jeenanet:30m;

and then

location @rails {
    # ...
    proxy_cache jeenanet;
}
[–] mesamunefire@piefed.social 2 points 3 days ago (1 children)

Nice! Yeah the S3 is a good way to work with it. They are dirt cheap at least.

...I should probably upgrade my setup at some point haha.

[–] jeena@piefed.jeena.net 2 points 3 days ago* (last edited 3 days ago)

I had the problem that peertube redundancy only works on public videos and most of my videos are private/internal. And in my specific case I hosted them in Germany where my server is and because of routing and peering they would always buffer a lot in South Korea where I am so I had to solve it in a creative way, the S3 bucket is one part of my solution, putting it in the right country was another, which I explain in detail here: https://tube.jeena.net/w/uXZN52xsH75LbHWNt8dsLY