@eltonjosesouza/strapi-provider-upload-google-cloud-storage
v3.0.0-beta.18
Published
(Non-official) Google Cloud Storage Provider for Strapi Upload using environment variable
Downloads
2
Maintainers
Readme
strapi-provider-upload-google-cloud-storage
Non-Official Google Cloud Storage Provider for Strapi Upload
Inspired from https://www.npmjs.com/package/strapi-provider-upload-google-cloud-storage
Installation
Install the package from your app root directory
cd /path/to/strapi/
npm install @eltonjosesouza/strapi-provider-upload-google-cloud-storage --save
Setting up Google authentification
- In the GCP Console, go to the Create service account key page..
- From the Service account list, select New service account.
- In the Service account name field, enter a name.
- From the Role list, select Storage > Storage Object Admin.
- Click Create. A JSON file that contains your key downloads to your computer.
- Go to https://cloud.google.com/docs/authentication/getting-started and configure your environment variable
Create Bucket on Google Cloud Storage
- See https://cloud.google.com/storage/docs/creating-buckets
Setting up Strapi upload configuration
- Access your strapi via browser
- Go to General->Plugins and click on gear to configure your plugin.
- Set bucket-name
- Save the configuration
- Enjoy !