config.js 856 B

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