update README

This commit is contained in:
2025-10-10 07:12:54 +02:00
parent 643272cf6f
commit d06faba01f

View File

@@ -1,11 +1,10 @@
# Move PeerTube video storage to Hetzner S3 (Cloudron setup, CORS fix)
# Move PeerTube video storage to Hetzner S3
Hi everyone,
after a few failed attempts with other S3 providers like **iDrive** and **Backblaze**,
I tried **Hetzner Object Storage (S3)** — where we also host our Cloudron servers.
I tried **Hetzner Object Storage (S3)** — where we also host our servers.
Heres my working setup and migration process — maybe it helps someone.
Everything works great: Ive successfully moved **~240 GB** of videos, all without issues.
This guide shows how to move PeerTube video storage to **Hetzner Object Storage (S3-compatible)** on a **Cloudron instance**. Tested with PeerTube 7.3.0 and Cloudron v8.3.2 (Ubuntu 24.04.1 LTS)
@@ -52,7 +51,7 @@ You should see:
CORS: <CORSConfiguration ...><AllowedOrigin>*</AllowedOrigin>...</CORSConfiguration>
```
## 3⃣ Edit PeerTube configuration
Open `/app/data/production.yaml` (Cloudron path) and add or modify this block:
Open `/app/data/production.yaml` and add or modify this block:
```yaml
object_storage:
enabled: true
@@ -87,7 +86,7 @@ object_storage:
base_url: 'https://peertube-1.fsn1.your-objectstorage.com'
upload_acl: 'public-read'
```
Save and restart PeerTube from the Cloudron dashboard.
Save and restart PeerTube.
## 4⃣ Move videos to S3
From the Cloudron Web Terminal:
@@ -97,6 +96,9 @@ cd /app/code/server
```
gosu cloudron:cloudron npm run create-move-video-storage-job -- --to-object-storage
```
```
```
```
This creates jobs that migrate all videos to your S3 bucket. Progress can be monitored in Cloudron → App → Logs.
## 5⃣ Verify