UNPKG

@creditkarma/dynamic-config

Version:

Dynamic Config for Node.js backed by Consul and Vault

49 lines (48 loc) 1.26 kB
/** * Address of the Consul instance we're reading from */ export declare const CONSUL_ADDRESS: string; /** * Datacenter for the KV Store */ export declare const CONSUL_DC: string; /** * Consul Keys are a comma separated list of configs to load and merge */ export declare const CONSUL_KEYS: string; /** * Namespace to prepend to all Consul searches */ export declare const CONSUL_NAMESPACE: string; /** * Path to local config files */ export declare const CONFIG_PATH: string; /** * Alternative to CONFIG_PATH compatible with options for `node-config` */ export declare const NODE_CONFIG_DIR: string; /** * Settings path */ export declare const SETTINGS_PATH: string; /** * Backup environment variable to use for config environment */ export declare const CONFIG_ENV: string; /** * The key in the config where we find Vault configuration */ export declare const HVAULT_CONFIG_KEY: string; /** * Local folder, relative to cwd, to find configs */ export declare const DEFAULT_CONFIG_PATH: string; /** * In the event NODE_ENV isn't set, this will be used */ export declare const DEFAULT_ENVIRONMENT: string; /** * Other than cwd, what directories to search for configs (relative to cwd) */ export declare const CONFIG_SEARCH_PATHS: string[];