src/config/js-yaml-loader.js
function setGlobalConfigDirectory (argv, filePath) {
  const customConfigPath =
      argv.c ||
      argv.config ||
      filePath ||
      process.env.DEEPSTREAM_CONFIG_DIRECTORY
  const configPath = customConfigPath
    ? verifyCustomConfigPath(customConfigPath)
    : getDefaultConfigPath()
  global.deepstreamConfDir = path.dirname(configPath)
  return configPath
}
function setGlobalConfigDirectory (argv, filePath) {
  const customConfigPath =
      argv.c ||
      argv.config ||
      filePath ||
      process.env.DEEPSTREAM_CONFIG_DIRECTORY
  const configPath = customConfigPath
    ? verifyCustomConfigPath(customConfigPath)
    : getDefaultConfigPath()
  global.deepstreamConfDir = path.dirname(configPath)
  return configPath
}
function setGlobalConfigDirectory ( argv , filePath ) { const customConfigPath = argv . c || argv . config || filePath || process . env . DEEPSTREAM_CONFIG_DIRECTORY const configPath = customConfigPath ? verifyCustomConfigPath ( customConfigPath ) : getDefaultConfigPath ( ) global . deepstreamConfDir = path . dirname ( configPath ) return configPath }
Set the globalConfig prefix that will be used as the directory for ssl, permissions and auth
relative files within the config file
Set the globalConfig prefix that will be used as the directory for ssl permissions and auth relative files within the config file