config.js 866 B

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