{"size": 788, "ext": "js", "max_stars_repo_path": "config.js", "max_stars_repo_name": "uk-gov-mirror/defra.water-abstraction-returns", "max_stars_repo_stars_event_min_datetime": "2019-11-11T00:10:48.000Z", "max_stars_repo_stars_event_max_datetime": "2019-11-11T00:10:48.000Z", "max_issues_repo_path": "config.js", "max_issues_repo_name": "uk-gov-mirror/defra.water-abstraction-returns", "max_issues_repo_issues_event_min_datetime": "2018-07-30T12:59:26.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-29T13:13:33.000Z", "max_forks_repo_path": "config.js", "max_forks_repo_name": "uk-gov-mirror/defra.water-abstraction-returns", "max_forks_repo_forks_event_min_datetime": "2021-04-10T21:32:01.000Z", "max_forks_repo_forks_event_max_datetime": "2021-04-10T21:32:01.000Z"}
{"max_stars_count": 1, "max_issues_count": 239, "max_forks_count": 1, "avg_line_length": 20.7368421053, "max_line_length": 119, "alphanum_fraction": 0.6395939086}
const testMode = parseInt(process.env.TEST_MODE) === 1;
const isAcceptanceTestTarget = ['local', 'dev', 'development', 'test', 'qa', 'preprod'].includes(process.env.NODE_ENV);

module.exports = {

  blipp: {
    showAuth: true
  },

  jwt: {
    key: process.env.JWT_SECRET,
    verifyOptions: { algorithms: ['HS256'] }
  },

  logger: {
    level: testMode ? 'info' : 'error',
    airbrakeKey: process.env.ERRBIT_KEY,
    airbrakeHost: process.env.ERRBIT_SERVER,
    airbrakeLevel: 'error'
  },

  pg: {
    connectionString: process.env.DATABASE_URL,
    max: process.env.NODE_ENV === 'local' ? 20 : 7,
    idleTimeoutMillis: 10000,
    connectionTimeoutMillis: 5000
  },

  server: {
    port: 8006,
    router: {
      stripTrailingSlash: true
    }
  },

  isAcceptanceTestTarget
};
