![]() |
Kvs s3
Hi GFY,
KVS recently has the option to use S3 storage. Now I am trying to use it with self hosted storage and the S3 software named Minio. The only problem is that I do now have the knowledge to create a php script that handles invalidation and content protection. Is there any PHP guru here that knows how its done? Ofcourse its a paid gig. Let me know Thanks |
Try to use AWS CLI script, should make it easier for you.
|
Look into pre-signed URLs. The script should not protect the objects, but give access to x amount of time. You also don't need to set it as expired, as the expiration time is embedded in the token.
The page in the documentation is named "mc share download" ``` mc share download --expire DURATION ALIAS/PATH ``` I would rather use a different language to handle this (if there is more logic), or a bash script, to be executed from your CMS. I |
U will basically setup the minio and copy your files to that storage server with your file naming. Then can use s3 presigned url php file as a class or function.
1. Create a file with aws s3 presigned url function. For example awss3.php, and use your credentials to create presigned url, this is the example link, and u can also search github. https://docs.aws.amazon.com/sdk-for-...igned-url.html 2. Include or require the awss3.php inside kvs blocks/list_videos/list_videos.php 3. Pass video id or name to as param to presigned url function to retrieve temporary link for your storage videos. 4. Adjust kvs template file to show only presigned url's for videos link and preview. |
All times are GMT -7. The time now is 05:05 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123