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.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
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
Old 10-23-2023, 10:44 AM   #1
hbarnetworks
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
hbarnetworks is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-23-2023, 11:14 AM   #2
Klen
 
Klen's Avatar
 
Industry Role:
Join Date: Aug 2006
Location: Little Vienna
Posts: 32,234
Try to use AWS CLI script, should make it easier for you.
Klen is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-23-2023, 12:20 PM   #3
tomash999
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
tomash999 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-23-2023, 05:59 PM   #4
Azamat
Confirmed User
 
Azamat's Avatar
 
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.
Azamat is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks

Tags
kvs, php, protection, storage



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.