config.js 817 B

12345678910111213141516171819202122232425262728293031323334
  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. },
  20. //Mongodb config
  21. mongodb_on : false,
  22. mongodb_cfg : {
  23. host:'localhost',
  24. port:27017,
  25. user:null,
  26. password:'',
  27. database:''
  28. },
  29. //If Debug on,log && info logs will output in console;except Error!
  30. debug:true,
  31. //if write file on,logs will write in log files
  32. write_log_file:true,
  33. write_error_file:true
  34. };