config.js 797 B

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