@tigojs/cfs

0.4.1 • Public • Published

@tigojs/cfs

Provide configuration files storage for tigo.

Usage

Install this plugin with @tigojs/cli:

tigo add cfs

The storage service can store .json, .xml and .yaml files, all the files in the storage can be edited from the online editor in tigo-panel.

Configuration

Here's a template:

// .tigorc.js
module.exports = {
  plugins: {
    cfs: {
      package: '@tigojs/cfs',
      config: {
        sqlEngine: '',  // SQL engine name (string), if remains empty or not set, plugin will use the first available one.
        kvEngine: '',  // KV engine name, if remains empty or not set, plugin will use the first available one.
        kvConfig: {
          storagePath: '',  // storage path for kv engine (local)
          connect: {},  // connection info for kv engine (network)
        },  // Configuration object that will be passed to KV engine
        cache: {
          max: 500,  // max items in lru cache
          maxAge: 60 * 60 * 1000,  // max age in lru cache
        },
      },
    },
  },
};

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i @tigojs/cfs

Weekly Downloads

1

Version

0.4.1

License

MIT

Unpacked Size

19.6 kB

Total Files

9

Last publish

Collaborators

  • backrunner