config.js 735 B

12345678910111213141516171819202122232425262728293031323334
  1. global.Config = {
  2. //Session ExpireTime min.
  3. SessionExpire : 30,
  4. //Asset path
  5. asset_path : 'asset',
  6. //WhiteList
  7. BlackList : {},
  8. //Mysql config
  9. mysql_on : false,
  10. mysql_cfg : {
  11. host:'localhost',
  12. port:3306,
  13. user:'root',
  14. password:'',
  15. database:'',
  16. prefix:''
  17. },
  18. //Mongodb config
  19. mongodb_on : false,
  20. mongodb_cfg : {
  21. host:'localhost',
  22. port:27017,
  23. user:null,
  24. password:'',
  25. database:'',
  26. prefix:''
  27. },
  28. //If Debug on,log && info logs will output in console;except Error!
  29. debug:true,
  30. //if write file on,logs will write in log files
  31. write_log_file:true,
  32. write_error_file:true
  33. };