123456789101112131415161718192021222324252627282930313233343536373839 |
- global.Config = {
- ServerName:'',
- ServerPort:8080,
- //Session ExpireTime min.
- SessionExpire : 30,
- RenewSessionOnRead:true,
- //Asset path
- asset_path : 'asset',
- upload_path : 'asset/upload',
- //WhiteList
- BlackList : {},
- //Mysql config
- mysql_on : false,
- mysql_cfg : {
- host:'localhost',
- port:3306,
- user:'root',
- password:'',
- database:'',
- prefix:'',
- connectionLimit:10
- },
- //Mongodb config
- mongodb_on : false,
- mongodb_cfg : {
- host:'localhost',
- port:27017,
- user:null,
- password:'',
- database:'',
- prefix:''
- },
- //If Debug on,log && info logs will output in console;except Error!
- debug:true,
- //if write file on,logs will write in log files
- write_log_file:true,
- write_error_file:true
- };
|