(fileName)
| 41 | ]; |
| 42 | |
| 43 | function findConfigFile(fileName) { |
| 44 | if (fileName[0] === '/') { |
| 45 | return fileName; |
| 46 | } |
| 47 | const containingPath = configSearchPaths.find(configPath => { |
| 48 | const testFilePath = path.join(configPath, fileName); |
| 49 | return fs.existsSync(testFilePath); |
| 50 | }); |
| 51 | if (!containingPath) { |
| 52 | throw new Error(`Unable to find the configuration file "${fileName}" ` + |
| 53 | `under the paths: ${JSON.stringify(configSearchPaths)}`); |
| 54 | } |
| 55 | return path.join(containingPath, fileName); |
| 56 | } |
| 57 | |
| 58 | // whitelist IP, CIDR for health checks |
| 59 | const defaultHealthChecks = { allowFrom: ['127.0.0.1/8', '::1'] }; |
no outgoing calls
no test coverage detected