module.exports = {
  chromeLocation: '/usr/bin/chromium-browser',
  logBrowserConsole: false,
  logRequests: false,
  ttl: 24 * 60 * 60 * 1000,
  omittedHeaders: [
    'set-cookie',
    'authorization',
  ]
}

const path = require('path')
const diskCachePath = path.resolve(__dirname, '..', 'chrome_disk_cache')

module.exports = {
  chromeLocation: '/usr/bin/chromium-browser',
  logBrowserConsole: false,
  logRequests: false,
  ttl: 24 * 60 * 60 * 1000,
  omittedHeaders: [
    'set-cookie',
    'authorization',
  ],
  chromeFlags: [
    '--headless',
    '--disable-gpu',
    '--remote-debugging-port=9222',
    '--hide-scrollbars',
    `--disk-cache-dir=${diskCachePath}`
  ]
}

set disk cache directory