Verified Commit 458e1676 authored by Jelle Besseling's avatar Jelle Besseling Committed by Chocobozzz
Browse files

Add object storage configuration examples

parent 74015990
# Remote storage (S3)
In PeerTube version 3.4.0 native support was added for storage in s3 compatible
object stores. If you are using this version or newer you can use the new method
for s3 storage, otherwise you can still follow the documentation for the
[old method](?id=old-method).
## Native object storage
If your object storage provider supports the AWS s3 API, you can configure your
instance to move files there after transcoding. The bucket you configure should
be public and have CORS rules to allow traffic from the instance.
Here are two examples on how you can configure your instance:
```yaml
# Store all videos in one bucket on Backblaze b2
s3:
enabled: true
# Example Backblaze b2 endpoint
endpoint: 's3.us-west-001.backblazeb2.com'
videos_bucket: 'peertube-videos'
videos_prefix: 'videos/'
# Use the same bucket as for webtorrent videos but with a different prefix
streaming_playlists_bucket: 'peertube-videos'
streaming_playlists_prefix: 'streaming-playlists/'
```
```yaml
# Use two differnt bucketss for webtorrent and HLS videos
s3:
enabled: true
# Example AWS endpoint in the us-east-1 region
endpoint: 's3.us-east-1.amazonaws.com'
videos_bucket: 'webtorrent-videos'
videos_prefix: ''
streaming_playlists_bucket: 'hls-videos'
streaming_playlists_prefix: ''
```
## Old method
PeerTube supports streaming directly from an s3 public bucket. The integration
is done via FUSE, for instance with [s3fs](https://github.com/s3fs-fuse/s3fs-fuse).
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment