Kvs s3

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • hbarnetworks
    Confirmed User
    • Jun 2017
    • 10

    #1

    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
  • Klen
    • Aug 2006
    • 32235

    #2
    Try to use AWS CLI script, should make it easier for you.

    Comment

    • tomash999
      Confirmed User
      • Sep 2015
      • 88

      #3
      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

      Comment

      • Azamat
        Confirmed User
        • Dec 2018
        • 70

        #4
        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.

        Comment

        • Marshal
          Biz Dev and SEO
          • Jun 2005
          • 15219

          #5
          Does anybody have a solution for S3-compatible storage on KVS by now, that is NOT Amazon S3?
          I'm asking about the part with cdn urls protection. The default cdnapi_aws.php uses encoded KVS functions.
          Thank you!

          P.S. If anybody is willing to share their cdnapi_aws.php for Mojohost, I would appreciate it.
          Please remove your s3 keys first!!!
          ---
          Busy ranking websites on Google...

          Comment

          Working...