0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2025-01-06 22:40:26 -05:00
verdaccio/website/versioned_docs/version-6.x/api/config/classes/Config.md
2023-10-10 18:54:30 +02:00

5.5 KiB

id title sidebar_label sidebar_position custom_edit_url
Config Class: Config Config 0 null

Coordinates the application configuration

Implements

  • Config

Constructors

constructor

new Config(config, configOptions?)

Parameters

Name Type Default value
config ConfigYaml & { config_path: string } undefined
configOptions Object undefined
configOptions.forceEnhancedLegacySignature boolean true

Defined in

config.ts:64

Properties

auth

auth: any

Implementation of

AppConfig.auth

Defined in

config.ts:47


configOptions

Private configOptions: Object

Type declaration

Name Type
forceEnhancedLegacySignature boolean

Defined in

config.ts:63


configPath

configPath: string

Implementation of

AppConfig.configPath

Defined in

config.ts:49


flags

flags: FlagsConfig

Implementation of

AppConfig.flags

Defined in

config.ts:61


packages

packages: PackageList

Implementation of

AppConfig.packages

Defined in

config.ts:45


plugins

plugins: null | string | void

Implementation of

AppConfig.plugins

Defined in

config.ts:56


secret

secret: string

Implementation of

AppConfig.secret

Defined in

config.ts:60


security

security: Security

Implementation of

AppConfig.security

Defined in

config.ts:57


self_path

self_path: string

Deprecated

use configPath or config.getConfigPath();

Implementation of

AppConfig.self_path

Defined in

config.ts:53


serverSettings

serverSettings: ServerSettingsConf

Defined in

config.ts:58


server_id

server_id: string

Implementation of

AppConfig.server_id

Defined in

config.ts:48


storage

storage: string | void

Implementation of

AppConfig.storage

Defined in

config.ts:54


uplinks: any

Implementation of

AppConfig.uplinks

Defined in

config.ts:44


userRateLimit

userRateLimit: RateLimit

Implementation of

AppConfig.userRateLimit

Defined in

config.ts:62


user_agent

user_agent: undefined | string

Implementation of

AppConfig.user_agent

Defined in

config.ts:43


users

users: any

Defined in

config.ts:46

Methods

checkSecretKey

checkSecretKey(secret?): string

Store or create whether receive a secret key

Secret

external secret key

Parameters

Name Type
secret? string

Returns

string

Implementation of

AppConfig.checkSecretKey

Defined in

config.ts:150


getConfigPath

getConfigPath(): string

Returns

string

Defined in

config.ts:134


getMatchedPackagesSpec

getMatchedPackagesSpec(pkgName): void | PackageAccess

Check for package spec

Parameters

Name Type
pkgName string

Returns

void | PackageAccess

Implementation of

AppConfig.getMatchedPackagesSpec

Defined in

config.ts:141