1.1.1 • Published 10 months ago

verdaccio-az-storage v1.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

verdaccio-az-storage

License NPM Discord YouTube

Azure Storage plugin for Verdaccio 5.

Features

  • Stores packages and its data in an Azure Storage container
  • Cache control settings
  • Optionally, store verdaccio's database in Azure App Configuration

Getting Started

Prerequisites

  • An Azure Storage account with a container
  • Verdaccio 5

Install

Install like any other verdaccio plugin.

npm install verdaccio-az-storage

Configuration

To use this plugin, you will need to add the plugin to your verdaccio's config store option.

store:
  az-storage:
    # (Required) Connection string for the Azure storage account, can also be set by AZ_STORAGE_CONNECTION_STRING environment variable
    connectionString: 

    # (Required) Name of the container inside of the storage account
    containerName: example

    # (Optional, default 'packages') Directory in the container to store the packages in
    packagesDir: packages

    # (Optional) Cache control time (in seconds) for the package data (package.json file)
    cachePackageDataTime: 

    # (Optional) Cache control time (in seconds) for the package it self (tar file)
    cachePackageTime: 

    # (Optional) Connection string for the Azure app configuration, can also be set by AZ_STORAGE_APP_CONFIG_CONNECTION_STRING
    appConfigConnectionString: 

    # (Optional, default 'verdaccio-db') Key name for the value store in app configuration
    appConfigKeyName: verdaccio-db

Authors

Thanks