Skip to content

BackBlaze B2 plugin

Daniel Neto edited this page Sep 10, 2021 · 4 revisions

Configuring Backblaze Cloud Storage access in YouPHPTube

This guide covers configuring the BlackBlaze plugin to store the video files to the Backblaze B2 Cloud Storage service.

It is assumed that you have already set up a Backblaze account and bucket. For instructions on setting up Backblaze, please see their B2 Starter Guide.

Please Note: To use Backblaze, you will need to install the BlackBlaze_B2 plugin.

This videos also may help you configure it https://tutorials.avideo.com/video/111/how-to-configure-backblaze

Using a bucket-specific application key

This method restricts access to a single bucket

First, log in to your Backblaze account and open the Application Keys page: https://secure.backblaze.com/app_keys.htm

Generate a new application key using the button below your Master Key.

Enter a name for the key and select the bucket to allow access to. We will require Read and Write access. the hit the Create the new key button.

After the key is created, you will be shown the application key details. Copy or note these down, especially the application key itself, as this will only be displayed once.

In the plugin settings, enter the following details:

  • bucket_name: the name of the bucket you will use, the same as you just create the key image
  • accountId: your Account ID is the same as the Master Application KeyID image
  • keyId: It is related to your bucket image
  • applicationKey:The new application key that you copied above image
  • CDN_Link: Just in case you set up a CDN for your bucket
  • useDirectLink: If you uncheck it will hide the BackBlaze URL. It requires the apache xsendfile module, for a faster response I recommend you to leave it checked.
  • presignedRequestSecondsTimeout: how long the access token will be renewed.
  • usePublicBucket: in case you do not want to use tokens to access your files. image

After entering your credentials save your settings at the bottom of the page, then test the Backblaze settings

Clone this wiki locally