Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@cloudimage-strapi/content-plugin

Package Overview
Dependencies
Maintainers
2
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cloudimage-strapi/content-plugin

Strapi v4 plugin for Filerobot by Scaleflex

  • 1.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
2
Weekly downloads
 
Created
Source

Cloudimage plugin from Scaleflex for Strapi v4

Install

npm install @cloudimage-strapi/content-plugin

Config

config/middlewares.js

Replace 'strapi::security', with:

{
  name: 'strapi::security',
  config: {
    contentSecurityPolicy: {
      useDefaults: true,
      directives: {
        'connect-src': ["'self'", 'https:'],
        'img-src': ["'self'", 'data:', 'blob:', 'scaleflex.cloudimg.io', 'assets.scaleflex.com', '*.cloudimg.io'],
        'media-src': ["'self'", 'data:', 'blob:', 'scaleflex.cloudimg.io', 'assets.scaleflex.com', '*.cloudimg.io'],
        upgradeInsecureRequests: null,
      },
    },
  },
},

config/server.js

Append url: 'domain (including the http/https:// part)'

Eg: if you website is called mywebsite.com, then write like this:

module.exports = ({ env }) => ({
  host: env('HOST', '0.0.0.0'),
  port: env.int('PORT', 1337),
  app: {
    keys: env.array('APP_KEYS'),
  },
  url: 'https://www.mywebsite.com',
});

It’s very important that you don’t forget to do this

Configure

  • You can enter either token or domain.
  • Whether your Cloudimage token is v7 or not, it will be auto-detected and set.

If you enter nothing or an invalid token, you will get this error.

In the rare case that we can’t auto-detect whether token is v7 or not, you will get the option to manually set it.

What the plugin brings

  1. This plugin simple gives client an interface to save the configuration settings.
  2. It also allows clients to Cloudimage-ize all previous images:

  • It will NOT Cloudimage-ize images that are already hosted on Filerobot.
  • It will only sync images, no videos nor audios.

Keywords

FAQs

Package last updated on 04 Jan 2023

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc