@creditkarma/dynamic-config
Version:
Dynamic Config for Node.js backed by Consul and Vault
52 lines • 1.66 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.CONFIG_SEARCH_PATHS = exports.DEFAULT_ENVIRONMENT = exports.DEFAULT_CONFIG_PATH = exports.HVAULT_CONFIG_KEY = exports.CONFIG_ENV = exports.SETTINGS_PATH = exports.NODE_CONFIG_DIR = exports.CONFIG_PATH = exports.CONSUL_NAMESPACE = exports.CONSUL_KEYS = exports.CONSUL_DC = exports.CONSUL_ADDRESS = void 0;
/**
* Address of the Consul instance we're reading from
*/
exports.CONSUL_ADDRESS = 'CONSUL_ADDRESS';
/**
* Datacenter for the KV Store
*/
exports.CONSUL_DC = 'CONSUL_DC';
/**
* Consul Keys are a comma separated list of configs to load and merge
*/
exports.CONSUL_KEYS = 'CONSUL_KEYS';
/**
* Namespace to prepend to all Consul searches
*/
exports.CONSUL_NAMESPACE = 'CONSUL_NAMESPACE';
/**
* Path to local config files
*/
exports.CONFIG_PATH = 'CONFIG_PATH';
/**
* Alternative to CONFIG_PATH compatible with options for `node-config`
*/
exports.NODE_CONFIG_DIR = 'NODE_CONFIG_DIR';
/**
* Settings path
*/
exports.SETTINGS_PATH = 'SETTINGS_PATH';
/**
* Backup environment variable to use for config environment
*/
exports.CONFIG_ENV = 'CONFIG_ENV';
/**
* The key in the config where we find Vault configuration
*/
exports.HVAULT_CONFIG_KEY = 'hashicorp-vault';
/**
* Local folder, relative to cwd, to find configs
*/
exports.DEFAULT_CONFIG_PATH = 'config';
/**
* In the event NODE_ENV isn't set, this will be used
*/
exports.DEFAULT_ENVIRONMENT = 'development';
/**
* Other than cwd, what directories to search for configs (relative to cwd)
*/
exports.CONFIG_SEARCH_PATHS = ['src', 'lib', 'main', 'dist', 'app'];
//# sourceMappingURL=constants.js.map