Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
|
Looking for work? Have a job and looking for that right person to fill your position? Post your resumes and open positions here! Does your company provide a service that the industry needs? Post your service here. Video Editing, blog writing, encoding, programming, the works. |
|
Thread Tools |
10-23-2023, 10:44 AM | #1 |
Confirmed User
Industry Role:
Join Date: Jun 2017
Posts: 10
|
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 |
10-23-2023, 11:14 AM | #2 |
Industry Role:
Join Date: Aug 2006
Location: Little Vienna
Posts: 32,234
|
Try to use AWS CLI script, should make it easier for you.
|
10-23-2023, 12:20 PM | #3 |
Confirmed User
Industry Role:
Join Date: Sep 2015
Posts: 88
|
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 |
10-23-2023, 05:59 PM | #4 |
Confirmed User
Industry Role:
Join Date: Dec 2018
Location: Ulaanbaatar, Mongolia
Posts: 59
|
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.
__________________
KVS, Mechbunny, API's, Elevatedx, NATS, dating sites, Symfony, Laravel, LAMP stack development. |