verdaccio-storage-proxy
TypeScript icon, indicating that this package has built-in type declarations

0.0.11 • Public • Published

verdaccio-storage-proxy

All Contributors

npm NPM npm

A verdaccio storage proxy to decouple database, search, packument, and tarball accesses.

E.g. using the aws-s3-storage for tarball accesses, then using database storage for the rest accesses to create robust mixed storage for a cluster environment.

Access types:

  • database: accesses related to package CRD, security, and token.
  • search: accesses related to search.
  • packument: accesses related to packument CRUD.
  • tarball: accesses related to tarball read and write.

Installation

npm install verdaccio-storage-proxy

Configuration

store:
  storage-proxy:
    database_backend: redis-storage
    search_backend: redis-storage
    packument_backend: redis-storage
    tarball_backend: aws-s3-storage
    backends:
      aws-s3-storage:
        bucket: openupm
        region: us-east-1
        endpoint: http://127.0.0.1:9000
        accessKeyId: admin
        secretAccessKey: password
        s3ForcePathStyle: true
        keyPrefix: 'verdaccio/'
        tarballACL: public-read
      redis-storage:
        host: 127.0.0.1
        ...

The example configuration dispatches tarball accesses to aws-s3-storage and the rest to verdaccio-redis-storage.

Development

See the verdaccio contributing guide for instructions setting up your development environment. Once you have completed that, use the following npm tasks.

  • npm run build

    Build a distributable archive

  • npm run test

    Run unit test

For more information about any of these commands run npm run ${task} -- --help.

Contributors

Thanks goes to these wonderful people (emoji key):


Favo Yang

💻

Denis Gordeev

🐛 💻

This project follows the all-contributors specification. Contributions of any kind welcome!

Package Sidebar

Install

npm i verdaccio-storage-proxy

Weekly Downloads

13

Version

0.0.11

License

BSD-3-Clause

Unpacked Size

21.1 kB

Total Files

14

Last publish

Collaborators

  • favoyang