Strapi Provider Plugin

Learn how to configure Strapi Provider Plugin for use with Filebase.

What is Strapi?

Strapi is an open-source content management service (CMS) built using JavaScript. The Strapi Provider Plugin is a custom plugin that has been developed to use Filebase with Strapi.

Read below to learn how to use Strapi Provider Plugin with Filebase.

Prerequisites:

1. Install the plugin using yarn or npm:

yarn add strapi-provider-upload-ipfs-storage

npm install strapi-provider-upload-ipfs-storage --save

2. Edit the ./config/plugins.js file to include the following code snippet:

module.exports = ({ env }) => ({
  // ...
  upload: {
    config: {
      provider: "strapi-provider-upload-ipfs-storage",
      providerOptions: {
        defaultStorage: "filebase",
        filebase: {
          key: env("FILEBASE_KEY"),
          secret: env("FILEBASE_SECRET"),
          bucket: env("FILEBASE_BUCKET"),
        },
      },
    },
  },
  // ...
});

3. Edit the local .env file to include the following information:

FILEBASE_KEY="FILEBASE_KEY"
FILEBASE_SECRET="FILEBASE_SECRET"
FILEBASE_BUCKET="FILEBASE_BUCKET"

Replace the following values to reflect your configuration:

  • FILEBASE_KEY: Filebase Access Key

  • FILEBASE_SECRET: Filebase Secret Key

  • FILEBASE_BUCKET: Filebase Bucket Name

If you have any questions, please join our Discord server, or send us an email at hello@filebase.com

Last updated