colloqi / pisignage-server

Local Server to manage piSignage players based on node.js
http://www.pisignage.com
MIT License
369 stars 153 forks source link

support for Amazon S3 and S3 compatible clients + CDN #80

Open codeagencybe opened 4 years ago

codeagencybe commented 4 years ago

Hello

Is there any support/addon for using amazon S3 or S3 compatible clients like WASABI to handle the files/content in general. I prefer to keep application files & assets offloaded.

We apply this same concept also with Nextcloud etc... so we can create setups that have infinite scaleable storage attached. I would like to apply this same concept with PiSignage please.

Thanks for any feedback, tips, resources, directions,... how to make this possible.

hitesh83 commented 4 years ago

You can mount /media folder on different drive / volume.

codeagencybe commented 4 years ago

@hitesh83

That's not what i'm asking for. Read again please. Even if you mount a different folder or volume, that storage is not unlimited or infinite.

With an S3 bucket/compatible client, there is no more storage limit. You can go really unlimited. In our example with Nextcloud: When you upload files to Nextcloud, it passes by the device and disk and goes straight to the cloud into Amazon S3, WASABI, Minio, etc... The file URL is rewriting to an external/remote URL and assets are delivered back via CDN for faster loading. And you keep your server disk completely free/available, never issues or problems with storage limitations etc... Also, if your server would crash and you have no backup, all your files are gone. In my case, they are safe in the cloud and if the application is re-installed, all assets are back immediately as nothing is stored locally.

We also use Kubernetes cluster to create high available setups. So in our case, migrations are blazing fast because we never have to worry about all those files, assets etc... They just load from the cloud.

I'm now trying to figure out how I can create this same concept with PiSignage. It's a more safe, faster, stable and scaleable solution.

hitesh83 commented 4 years ago

Just by changing volume or dir not going to archive your result. Node server itself need to do this. So this to be added to in to do list.