module.exports = {
  domainTypes: ['domain', 'management'],
  accessTokenCookieKey: 'access_token.board',
  scheduler: {
    /* Name to be used for setting client's "application" properties when registering a schedule */
    application: 'operato-board',
    /* Base endpoint to be used for setting "callback" properties when registering a schedule */
    callbackBase: 'http://localhost:3000',
    /* 
        Scheduler service endpoint
        caution) endpoint for "localhost" has some problem. 
        https://github.com/node-fetch/node-fetch/issues/1624
      */
    endpoint: 'http://127.0.0.1:9902'
  },
  email: {
    host: 'smtp.office365.com', // your sender-email smtp host
    port: 587, // smtp server port
    secure: false, // true for 465, false for other ports
    auth: {
      user: 'your sender-email',
      pass: 'your sender-email password' // generated ethereal password
    },
    secureConnection: false,
    tls: {
      ciphers: 'SSLv3'
    }
  },
  i18n: {
    languages: [
      {
        code: 'en-US',
        display: 'English'
      },
      {
        code: 'ko-KR',
        display: '한국어'
      },
      {
        code: 'zh-CN',
        display: '中文'
      },
      {
        code: 'ja-JP',
        display: 'にほんご'
      }
    ],
    defaultLanguage: 'en-US',
    disableUserFavoredLanguage: false,
    disableCustomTerminologyFeature: true
  },
  logger: {
    file: {
      filename: 'logs/application-%DATE%.log',
      datePattern: 'YYYY-MM-DD-HH',
      zippedArchive: false,
      maxSize: '20m',
      maxFiles: '2d',
      level: 'info'
    },
    console: {
      level: 'silly'
    }
  },
  ormconfig: {
    name: 'default',
    type: 'sqlite',
    database: 'db.sqlite',
    synchronize: false,
    logging: true,
    logger: 'debug'
  }
}
