config.js 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. global.Config = {
  2. //Server Setting | 服务器基本信息设置
  3. Server:{
  4. Name:'',
  5. Host:'',
  6. Port:8080
  7. },
  8. //Session Setting | Session配置
  9. Session:{
  10. //Session Expire Time min.
  11. SessionExpire : 30,
  12. //No expire while surfing
  13. AutoRefresh:true,
  14. //Session store type && Support 'File' or 'Memcache'
  15. //If using memcache,Memcache setting must be modified
  16. StoreType:'File'
  17. },
  18. //Asset setting
  19. Asset:{
  20. //Asset path
  21. asset_path : 'asset',
  22. upload_path : 'asset/upload',
  23. },
  24. Database:{
  25. Mysql:{
  26. on:false,
  27. host:'localhost',
  28. port:3306,
  29. user:'root',
  30. password:'',
  31. database:'',
  32. prefix:'',
  33. connectionLimit:10
  34. },
  35. Mongodb:{
  36. on:false,
  37. host:'localhost',
  38. port:27017,
  39. user:null,
  40. password:'',
  41. database:'',
  42. prefix:''
  43. },
  44. Memcache:{
  45. on:true,
  46. host:'localhost',
  47. port:11211
  48. }
  49. },
  50. //If Debug on,log && info logs will output in console;except Error!
  51. debug:true,
  52. //if write file on,logs will write in log files
  53. write_log_file:false,
  54. write_error_file:true,
  55. };