module.exports = {
  domainType: 'warehouse',
  domainExtType: 'warehouse',
  useVirtualHostBasedDomain: false,
  fallbackRoute: '/',
  subdomainOffset: 2,
  port: 4000,
  inspect: '9330',

  storage: {
    type: 's3',
    accessKeyId: 'AKIAUQEOPWEJHCE4MTH4',
    secretAccessKey: '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',
    bucketName: 'opa-one',
    region: 'ap-southeast-1'
  },
  // arif
  // ormconfig: {
  //   name: 'default',
  //   type: 'postgres',
  //   database: 'arif',
  //   username: 'postgres',
  //   password: 'hatio',
  //   host: '10.254.29.189',
  //   port: 15432,
  //   synchronize: false,
  //   logging: true
  // },

  // STAGING DATABASE
  ormconfig: {
    name: 'default',
    type: 'postgres',
    database: 'staging',
    username: 'postgres',
    password: 't62dgT#Ns*GerhuZ9wnzm^',
    host: 'my-operato-pg.cjcso4qmeuq0.ap-southeast-5.rds.amazonaws.com',
    port: 55432,
    synchronize: false,
    logging: true
  },

  // ormconfig: {
  //   name: 'default',
  //   type: 'postgres',
  //   host: 'operatov3.cluster-cijhm4n1hbst.ap-southeast-1.rds.amazonaws.com',
  //   port: 55432,
  //   database: 'postgres',
  //   username: 'postgres',
  //   password: 'abcd1234',
  //   synchronize: false,
  //   logging: true,
  //   connectTimeoutMS: 30000,
  //   extra: { poolSize: 30 }
  // },

  //db izzah
  // ormconfig: {
  //   name: 'default',
  //   type: 'postgres',
  //   database: '06072023',
  //   username: 'postgres',
  //   password: 'hatio',
  //   host: '192.168.0.153',
  //   port: 15432,f
  //   synchronize: true,
  //   logging: true
  // },
  // ormconfig: {
  //   name: 'default',
  //   type: 'postgres',
  //   database: 'postgres',
  //   username: 'postgres',
  //   password: 'hatio',
  //   host: '192.168.0.151',
  //   port: 15432,
  //   synchronize: false,
  //   logging: true
  // },

  // //ERIC
  // ormconfig: {
  //   name: 'default',
  //   type: 'postgres',
  //   database: 'eric',
  //   username: 'postgres',
  //   password: 'hatio',
  //   host: '192.168.0.153',
  //   port: 15432,
  //   synchronize: false,
  //   logging: true
  // },

  //eric 2
  // ormconfig: {
  //   name: 'default',
  //   type: 'postgres',
  //   database: 'eric2',
  //   username: 'postgres',
  //   password: 'hatio',
  //   host: '192.168.0.153',
  //   port: 15432,
  //   synchronize: false,
  //   logging: true
  // },

  // ormconfig: {
  //   name: 'default',
  //   type: 'postgres',
  //   host: 'operatov3.cluster-cijhm4n1hbst.ap-southeast-1.rds.amazonaws.com',
  //   port: 55432,
  //   database: 'postgres',
  //   username: 'postgres',
  //   password: 'abcd1234',
  //   synchronize: false,
  //   logging: true,
  //   connectTimeoutMS: 30000,
  //   extra: { poolSize: 30 }
  // },
  //ormconfig: {
  //  name: 'default',
  //  type: 'postgres',
  //  database: 'dev2',
  //  username: 'postgres',
  //  password: 'hatio',
  //  host: 'localhost',
  //  port: 15432,
  //  synchronize: false,
  //  logging: true,
  //  connectTimeoutMS: 30000,
  //  extra: { poolSize: 30 }
  //},
  SECRET: '0xD58F835B69D207A76CC5F84a70a1D0d4C79dfC95',
  password: {
    lowerCase: true,
    upperCase: false,
    digit: false,
    specialCharacter: false,
    allowRepeat: true,
    useTightPattern: false,
    useLoosePattern: true,
    tightCharacterLength: 4,
    looseCharacterLength: 4,
    history: 2
  },
  uploads: 'uploads',
  attachmentsPath: 'attachments',
  logger: {
    file: {
      filename: 'logs/application-%DATE%.log',
      datePattern: 'YYYY-MM-DD-HH',
      zippedArchive: true,
      maxSize: '200m',
      maxFiles: '1m',
      level: 'info'
    }
  },
  email: {
    host: 'smtp.office365.com',
    port: 587,
    secure: false, // true for 465, false for other ports
    auth: {
      user: 'no-reply@hatiolab.com', // generated ethereal user
      pass: 'h@ti0LAB1008' // generated ethereal password
    },
    secureConnection: false,
    tls: {
      ciphers: 'SSLv3'
    }
  },
  sender: 'no-reply@hatiolab.com',
  notification: {
    // fcm: {
    //   serviceAccount: {
    //     project_id: 'operato',
    //     private_key:
    //       '-----BEGIN PRIVATE KEY-----\nMIIEvQIBADANBgkqhkiG9w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3BeeBSOUHSA8TvjnA0xd83xeb\n8ZJasWoFvwKBgQDFs/gQ/gIdcq0exLfluh5nw0qgcmyHpNWJHdjqITS9IX/nqFkU\n0IYLtmdStf2jQiLmbkydHcvz9wZVvLqml67VBHhwLcwpgPULoskd34/4V0Dvzy4c\nv1Esw8H5zVqIDLeLu+VpFjZMzQrjyl6RIWbyTExEc84rVWfpQYAu3qIGOQKBgAFr\nXatEk7TdAtRNSPflTfu/rTAaSeKROjQBkvBiU8x4US1YpOBDBxUUyAtG8wKh5FHC\nfnsaGq+fM3KXJVv2R6J62mXQOfg4xyDLpWlwcBK4aSBBMoiBcsjouqSlZQlqMpdf\nZBgixqHe6U8BsFJg/6ZxC0y+e3AIss4Bo4/lb+1lAoGAFOexvaBh21K6W3inmRW4\nLlkVYJaBJ20OwokXg5aXjBiHxqmk7VLAuFbkpb5LOKH2xPILRQ0OEkn51yVymS3T\n9lLpHOFTQXt5tF2/F7NW7kaQJNlLr/h5jPi3O9XHeFmuaN2z150ZB6zzgjeGKzr8\ni+1fgTsRfDtNw8xkSH9qL1Y=\n-----END PRIVATE KEY-----\n',
    //     client_email: 'firebase-adminsdk-xmm2e@operato.iam.gserviceaccount.com'
    //   },
    //   appConfig: {
    //     apiKey: 'AIzaSyDdTM2BTLHSt2LNS0G5QB8G0i4KBXFiG7U',
    //     projectId: 'operato',
    //     messagingSenderId: 79537064975,
    //     appId: '1:79537064975:web:32f53119e9c8c6ee2a277a'
    //   },
    //   serverKey:
    //     'AAAAEoTHTA8:APA91bGwt-4HT82Dfwf_VwbQaKT0_qHd0Y3tuW41udjWz5Lz0Ko0mEMD6WbHHSILvQpa6yuoGGKCMsrU7VW2qWRrUm3CYpyG9oSwshNm1tIhljAnOuUfwHCoawbVLwf9qlWpHt4dwCoc'
    // },
    // vapidKey: {
    //   subject: 'mailto:heartyoh@hatiolab.com',
    //   publicKey: 'BAkVkITsCXBIsYL1yeaBmx5_dn57we-ZXMjirPPHzC2dan82cdEnAio_53PQ-1_w3ykWCBPrrFAWQ_d9N4cFF0o',
    //   privateKey: '4pmlt3Wk019u7nqU3Q_oGZE6LbUDjjf8DpmAcn9-iss'
    // }
  },
  // reportApiUrl:
  //   'http://k8s-default-operator-8eeba2e246-3e3a5ee7979bcd57.elb.ap-southeast-1.amazonaws.com/rest/report/show_html',
  // reportApiUrl: 'http://192.168.0.153:8888/rest/report/show_html',
  // reportApiUrl: 'http://192.168.0.153:8888/rest/report/show_html',
  // reportApiUrl: 'http://10.100.109.66:8090/rest/report/show_html',
  awbFileStorage: {
    type: 's3',
    accessKeyId: 'AKIAUQEOPWEJKL43OMZA',
    secretAccessKey: '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',
    bucketName: 'operato-awb',
    region: 'ap-southeast-1'
  },
  invoiceFileStorage: {
    type: 's3',
    accessKeyId: 'AKIAUQEOPWEJKL43OMZA',
    secretAccessKey: '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',
    invoiceBucket: 'operato-invoice',
    region: 'ap-southeast-1'
  },
  lambda: {
    region: 'ap-southeast-1',
    accessKeyId: 'AKIAUQEOPWEJKL43OMZA',
    secretAccessKey: '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'
  },
  reportApiUrl:
    'http://k8s-default-operator-8eeba2e246-3e3a5ee7979bcd57.elb.ap-southeast-1.amazonaws.com/rest/report/show_html'
}
