minio and Hetzner Storage Box
-
Hi,
my Cloudron runs on a Hetzner VPS. I need some S3 Storage for Mastodon, Discourse Backups.... I also have a Storage Box with Hetzner (5TB).
Is there a way to use the Storage Box for getting S3 with the Cloudron Minio app?
Couldn't figure it out from the other postings here in the forum. -
Yes there is.
It is called volumes. https://docs.cloudron.io/volumes/You can add the 5TB Storage Box as a volume (or better, a sub-account of that box as a volume) and then move the whole minio app into that volume.
Done. -
@BrutalBirdie said in minio and Hetzner Storage Box:
then move the whole minio app into that volume.
I'm not sure I get this part of your proposed solution.
How can you move an app into a volume
-
@jdaviescoates maybe @BrutalBirdie meant https://docs.cloudron.io/apps/#data-directory . There is a volume selector to move app data.
-
@girish I thought perhaps he meant that too, but afaik Hetzner Storage boxes aren't really suitable for Data Directory because the mount options available don't have proper permissions systems
As per the docs:
cifs and sshfs volumes are unsuitable as an app's data directory as they do not support file permissions and ownership. mountpoint and nfs volumes may or may not work depending on the destination filesystem.
-
I still use it for my emby instance over 1 TB stored in a volume, not the whole app, but basically all media.
-
@BrutalBirdie yeah, all my music is on a Hetzner storage box mounted as a Cloudron Volume into my Navidrome app too. I guess it works fine for such things.
-
@BrutalBirdie Hi, thanks. Already tried that nut doesn't seem to work...
What m I doing wrong? -
@sponch not on Cloudron atleast. I just checked the upstream project and they mention that there might be inconsistencies with using Minio with CIFS - this comment .
I did find this interesting series of articles about Minio+CIFS as well - https://maulana.id/soft-dev/2021--05--07--10--lesson-learned-on-deploying-minio-with-cifs-backend-part-1/ .... It's not straightforward.
-
I am looking for a cost-effective solution to host videos that will be embeded on my moodle site.
Here is the cheapest solution I came up with:
- Use minio and hetzner storage box to store the vidoes
- Use PeerTube to encode and stream the videos
- Then embed the videos on my moodle site
Does this solution work?
Which mount type should i choose? (chatgpt says NFS or SSHFS but I am not sure) -
I just read the doc: https://docs.cloudron.io/volumes/
is CIFS the best option for hetzner storage box? since NFS is unencrypted, and SSHFS sub accounts are not very reliable> -
Here is my understanding for now (correct me if I am wrong):
- In order to stream videos, I need to use "Data Directory" rather than "Mounts".
- Only volumes with Mount Type EXT4 and NFS can be used as Data Directory.
- Hetzner storage box does not support either EXT4 or NFS.
I was confused with Data Directory and Mounts.
I thought I could use Mounts for video streaming purposes. -
-
@taowang peertube stores files in the filesystem (by default). If you check the configuration file (https://docs.cloudron.io/apps/peertube/#customization) , you can see the paths. Change the paths to that of the your mount.
The S3 stuff comes into picture only if you configure peertube to use "object storage" (i.e remote storage, I think in peertube lingo)