UNPKG

kpiplus

Version:

KPI+

82 lines (78 loc) 2.07 kB
var fs = require("fs"); let packageInfo = JSON.parse(fs.readFileSync(__dirname + "/package.json", 'utf8')); var underscore = require('underscore'); exports.domain = ''; //your domain exports.company = ''; var program = packageInfo.name; exports.program = program; exports.version = packageInfo.version; exports.PORT = '80'; exports.use_ssl = false; exports.timezone = 'Asia/Ho_Chi_Minh'; //emai sender var wellknown = require('nodemailer-wellknown'); var sender = wellknown('Gmail'); sender.auth = { user: 'kpiplusvn@gmail.com', pass: 'Kpi@Plus!' }; // sender.name = exports.domain || exports.company || program; exports.sender = sender; //user ADMIN exports.adminUsers = [ { email: 'admin', name: 'Administrator', defaultPassword: '123456' } ]; exports.partnerUsers = []; exports.admins = underscore.pluck(exports.adminUsers, 'email'); exports.partners = underscore.pluck(exports.partnerUsers, 'email'); exports.supportUsers = underscore.pluck(exports.adminUsers, "email"); //oauth2.0 exports.google = { clientID: '', clientSecret: '', callbackURL: exports.domain + '/auth/google/callback', scope: ['profile', 'email', 'https://www.googleapis.com/auth/drive'] }; exports.facebook = { clientID: '', clientSecret: '', callbackURL: exports.domain + '/auth/facebook/callback', scope: ['email'] }; //for machine learning exports.wit = { url: "https://api.wit.ai/", Authorization: "" } //mongodb exports.database = { url: 'mongodb://localhost/acc_v11' , time_auto_backup: '2015-06-13 23:50' , repeat: 1//1:day,2:week,3:month,4:3 months,5:12 months //,backupDir:'E:\\BACKUP ON SERVER\\ungdungquanly' }; //sql server exports.sqlconfig = { user: 'sa', password: 'password', server: 'localhost', // You can use 'localhost\\instance' to connect to named instance port: 1433, connectionTimeout: 0, requestTimeout: 0, pool: { max: 10, min: 0, idleTimeoutMillis: 30000 }, databaseDir: '', backupFile: '' /* options: { encrypt: true // Use this if you're on Windows Azure } */ };