mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2026-03-02 22:57:11 -05:00
per‑bucket endpoint and region overrides #6436
Labels
No labels
Component: Accessibility
Component: Administration
Component: Auth
Component: CLI
Component: Channels
Component: Chapters
Component: Comments
Component: Custom Markdown
Component: Docker 🐳
Component: Documentation 📚
Component: Email
Component: Embed
Component: Federation 🎡
Component: Import/Export
Component: Live
Component: Metadata
Component: Mobile
Component: Moderation :godmode:
Component: Notifications
Component: Object storage
Component: Observability
Component: PeerTube Plugin 📦
Component: Player ⏯️
Component: Playlist
Component: Recommendation
Component: Redundancy
Component: Registration
Component: Runners
Component: SEO
Component: Search
Component: Security
Component: Stats
Component: Studio
Component: Studio
Component: Subscriptions
Component: Subtitles 💬
Component: Transcoding
Component: Upload
Component: Video Import
Component: i18n 🔡
Priority: High
Priority: Low
Priority: Roadmap
Status: Blocked ✋
Status: In Progress 🔜
Status: To Reproduce
Status: Waiting for answer
Template not filled
Type: Bug 🐛
Type: Discussion 💭
Type: Discussion 💭
Type: Duplicate ➿
Type: Feature Request ✨
Type: Maintenance 👷♀️
Type: Performance
Type: Question
UI
good first issue
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/PeerTube#6436
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @spirillen on GitHub (Jan 30, 2026).
Describe the problem to be solved
When configuring S3 storage in PeerTube the current documentation only covers a single endpoint and region for all buckets (remote‑storage docs).
However, because different countries have different legislation, you may not wish to host your videos in, for example, France, where authorities require the registration of browsing (sexuality) habits, or in Denmark, where ISPs are compelled to forward users’ browsing data to the police, both measures allowing the government to obtain personally identifiable information and, some argue, to manipulate the so‑called “democracy”.:
user_exportsin a jurisdiction with stricter privacy protections,original_video_filesin a cheaper or faster location, andstreaming_playlistsacross several endpoints to balance load.Describe the solution you would like
Add optional
endpointandregionfields for each bucket definition, overriding the global defaults.Example configuration (YAML)
Benefits
Implementation notes
endpoint/default_regionvalues are used.upload_tocan accept the custom values'first'or'all'to control replication strategy per bucket.Allowing per‑bucket endpoint and region settings would make PeerTube’s storage configuration far more flexible and better suited to the diverse regulatory landscape across Europe and beyond.
In addition to the current bucket configuration, I would like to request the ability to use buckets for mirrored content, with a cap on the total bucket utilisation.
OVH have removed all fees for transferred data, and their storage costs are relatively low. Consequently, I would like to offer free bandwidth and spend a modest amount on the fediverse by providing some complimentary data‑storage and traffic to the Cloudflare, and other centralised, free PeerTube instances. This would support free‑speech democracy and the human right to online privacy.
At present this is limited to local hard‑drives, which is not a viable option for me because my database and other services run on the same hardware.
Why aren’t static files such as thumbnails served from the buckets? Serving them locally adds load to the server and complicates backup and restore procedures. Keeping all generated content in a central CDN would make it far easier to set up a cheap fail‑over network of multiple PeerTube instances for load‑balancing and redundancy (e.g. via inexpensive VPS providers).
@spirillen commented on GitHub (Jan 30, 2026):
This Request do also touch: