3
0
Fork 0
xnode/lib-build/debug-server/server-config.js

71 lines
1.4 KiB
JavaScript
Raw Normal View History

2022-11-13 00:46:38 +00:00
module.exports = {
winston: {
console: {
level: 'debug',
silent: false,
colorize: true,
timestamp: null
},
file: {
level: 'info',
silent: false,
colorize: false,
json: false,
//timestamp: null,
//maxFiles: 100,
//maxsize: 1024*1024*1024,
filename: 'www_logs/server.log'
}
},
mongo: {
url: process.env.MONGO_URL || 'mongodb://localhost:27017/xnode-debug-server',
options : {
//user: 'myUserName',
//pass: 'myPassword',
db: {
fsync: false,
journal: false,
native_parser: true,
forceServerObjectId: true
},
server: {
poolSize: 4,
socketOptions: {
connectTimeoutMS: 500,
keepAlive: 1,
auto_reconnect: true
}
}
}
},
server: {
httpPort: process.env.HTTP_PORT || 8008,
httpTrustProxy: true,
2022-11-13 00:52:59 +00:00
sessionSecret: 'debugSecret',
2022-11-13 00:46:38 +00:00
sessionTTL: 14 * 24 * 60 * 60, // = 14 days. Default
},
application: {
2022-11-13 00:52:59 +00:00
name: 'Xnode Debug Server',
2022-11-13 00:46:38 +00:00
index: {
2022-11-13 00:52:59 +00:00
pageTitle: 'Xnode Debug Server',
2022-11-13 00:46:38 +00:00
pageKeywords: 'xnode,sensor,data,weather,wireless',
},
},
options: {
static: {
maxAge: 86400000
},
morgan: {
logLevel: process.env.LOG_MORGAN || 'dev'
},
cookieParser: {
secretKey: 'DeBugMe@11'
},
rss: {
link: 'http://localhost:8008',
2022-11-13 00:52:59 +00:00
author: 'Xnode',
2022-11-13 00:46:38 +00:00
options: {
}
}
}
};