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
Properties
auth
• auth: any
Implementation of
AppConfig.auth
Defined in
configOptions
• Private
configOptions: Object
Type declaration
Name | Type |
---|---|
forceEnhancedLegacySignature |
boolean |
Defined in
configPath
• configPath: string
Implementation of
AppConfig.configPath
Defined in
flags
• flags: FlagsConfig
Implementation of
AppConfig.flags
Defined in
packages
• packages: PackageList
Implementation of
AppConfig.packages
Defined in
plugins
• plugins: null
| string
| void
Implementation of
AppConfig.plugins
Defined in
secret
• secret: string
Implementation of
AppConfig.secret
Defined in
security
• security: Security
Implementation of
AppConfig.security
Defined in
self_path
• self_path: string
Deprecated
use configPath or config.getConfigPath();
Implementation of
AppConfig.self_path
Defined in
serverSettings
• serverSettings: ServerSettingsConf
Defined in
server_id
• server_id: string
Implementation of
AppConfig.server_id
Defined in
storage
• storage: string
| void
Implementation of
AppConfig.storage
Defined in
uplinks
• uplinks: any
Implementation of
AppConfig.uplinks
Defined in
userRateLimit
• userRateLimit: RateLimit
Implementation of
AppConfig.userRateLimit
Defined in
user_agent
• user_agent: undefined
| string
Implementation of
AppConfig.user_agent
Defined in
users
• users: any
Defined in
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
getConfigPath
▸ getConfigPath(): string
Returns
string
Defined in
getMatchedPackagesSpec
▸ getMatchedPackagesSpec(pkgName
): void
| PackageAccess
Check for package spec
Parameters
Name | Type |
---|---|
pkgName |
string |
Returns
void
| PackageAccess
Implementation of
AppConfig.getMatchedPackagesSpec