Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
@nexide/strapi-provider-bunny
Advanced tools
Bunny.net Upload Provider for Strapi V4.
npm install @nexide/strapi-provider-bunny
or
yarn add @nexide/strapi-provider-bunny
See the using a provider documentation for information on installing and using a provider. And see the environment variables for setting and using environment variables in your configs.
Example
./config/plugins.js
module.exports = ({ env }) => ({
// ...
upload: {
config: {
provider: '@nexide/strapi-provider-bunny',
providerOptions: {
api_key: env('BUNNY_API_KEY'),
storage_zone: env('BUNNY_STORAGE_ZONE'),
pull_zone: env('BUNNY_PULL_ZONE'),
hostname: env('BUNNY_HOSTNAME'),
},
},
},
// ...
});
.env
BUNNY_API_KEY: Storage Password (Inside FTP & API Access).
BUNNY_STORAGE_ZONE: Storage Zone name.
BUNNY_HOSTNAME: Hostname value (Inside FTP & API Access). eg: ny.storage.bunnycdn.com
BUNNY_PULL_ZONE: Pull Zone URL.
Enter Pull Zone URL without trailing slash – https://<pull-zone-name>.b-cdn.net
.
Optionally add Storage Endpoint Url without trailing slash (read more)
Due to the default settings in the Strapi Security Middleware you will need to modify the contentSecurityPolicy
settings to properly see thumbnail previews in the Media Library. You should replace strapi::security
string with the object bellow instead as explained in the middleware configuration documentation.
./config/middlewares.js
module.exports = [
// ...
{
name: 'strapi::security',
config: {
contentSecurityPolicy: {
useDefaults: true,
directives: {
'connect-src': ["'self'", 'https:'],
'img-src': [
"'self'",
'data:',
'blob:',
'market-assets.strapi.io',
process.env.BUNNY_PULL_ZONE,
],
'media-src': [
"'self'",
'data:',
'blob:',
'market-assets.strapi.io',
process.env.BUNNY_PULL_ZONE,
],
upgradeInsecureRequests: null,
},
},
},
},
// ...
];
FAQs
Bunny.net provider for Strapi upload
The npm package @nexide/strapi-provider-bunny receives a total of 41 weekly downloads. As such, @nexide/strapi-provider-bunny popularity was classified as not popular.
We found that @nexide/strapi-provider-bunny demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.