config.inc.js 778 B

12345678910111213141516171819202122232425262728
  1. //waitForConnections: 决定当没有连接池或者链接数打到最大值时pool的行为. 为true时链接会被放入队列中在可用是调用,为false时会立即返回error. (Default: true)
  2. //connectionLimit: 最大连接数. (Default: 10)
  3. //queueLimit: 连接池中连接请求的烈的最大长度,超过这个长度就会报错,值为0时没有限制. (Default: 0)
  4. global['DEBUG'] = true;
  5. var dbInfo = {};
  6. dbInfo['Web'] = {
  7. host : '221.228.83.154',
  8. user : 'ojiatest',
  9. password : 'ojia305',
  10. database : 'Web',
  11. port : 3306,
  12. connectionLimit : 100,
  13. };
  14. var redisInfo = {};
  15. redisInfo['Web'] = {
  16. host : '221.228.83.154',
  17. port : 6407,
  18. password : 'ojia123',
  19. db : 1
  20. };
  21. exports.dbInfo = dbInfo;
  22. exports.redisInfo = redisInfo;