Git Product home page Git Product logo

wn-backblazeb2storagedriver-plugin's Introduction

Backblaze B2 Storage Driver

This Winter CMS plugin allows you to use the Backblaze B2 cloud storage service as a filesystem on your installation.

Requirements

To use B2 Cloud Storage, you need to have a Backblaze account. You can get an account by signing up at backblaze.com. After enabling B2 for your account, you will have access to your Account ID and Application Key that lets you use the API. (https://www.backblaze.com/b2/docs/)

Plugin Settings

The plugin is configured in the Winter CMS filesystems.php and cms.php files.

filesystems.php

Edit your filesystems.php to add a disk "backblaze" that uses the b2 driver:

return [

  ...

  'disks' => [
    'backblaze' => [
      'driver'           => 'b2',
      'bucketName'       => '<your bucket name>',
      'applicationKeyId' => '<application key id>',
      'applicationKey'   => '<application key>'
    ],
  ],

  ...

];

You can also use your account ID and master application key instead of application keys, however this is not recommended.

cms.php

Edit your cms.php to configure the media manager to use your "backblaze" disk:

return [

  ...

  'storage' => [
    'media' => [
      'disk'   => 'backblaze',
      'folder' => '',
      'path'   => 'https://f000.backblazeb2.com/file/<your bucket name>'
    ],
  ],

  ...

];

The folder specifies a "prefix" inside the bucket to store files (useful if you have a namePrefix restriction on your application key). The path specifies the public URL of your bucket (no trailing slash), which can be obtained from the Backblaze B2 dashboard. If you have setup a subdomain to point to your bucket, replace the f000.backblazeb2.com with your custom domain.

Known Limitations

  • The Backblaze B2 API does not support moving or renaming objects. You will have to delete the remote copy and upload it again.

Change Log

  • 1.0.1 - First version

wn-backblazeb2storagedriver-plugin's People

Contributors

zaxbux avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

dheia

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.