config.js 769 B

1234567891011121314151617181920212223242526272829303132333435
  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. },
  19. //Mongodb config
  20. mongodb_on : false,
  21. mongodb_cfg : {
  22. host:'localhost',
  23. port:27017,
  24. user:null,
  25. password:'',
  26. database:'',
  27. prefix:''
  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. };