@mashroom/mashroom-session-provider-filestore

2.6.0 • Public • Published

Mashroom Session Filestore Provider

Plugin for Mashroom Server, a Microfrontend Integration Platform.

This plugin adds a file based session store that can be used by Mashroom Session. Actually this is just a wrapper for the session-file-store package.

Usage

If node_modules/@mashroom is configured as plugin path just add @mashroom/mashroom-session-provider-filestore as dependency.

Activate this session provider in your Mashroom config file like this:

{
  "plugins": {
        "Mashroom Session Middleware": {
            "provider": "Mashroom Session Filestore Provider"
        }
    }
}

And to change the default config of this plugin add:

{
  "plugins": {
        "Mashroom Session Filestore Provider": {
            "path": "../../data/sessions"
        }
    }
}
**NOTE**: The base for relative paths is the Mashroom config file.

All config options are passed to the session-file-store. See session-file-store for available options.

Dependencies (2)

Dev Dependencies (5)

Package Sidebar

Install

npm i @mashroom/mashroom-session-provider-filestore

Weekly Downloads

11

Version

2.6.0

License

MIT

Unpacked Size

4.64 kB

Total Files

4

Last publish

Collaborators

  • jkofler