2014-08-13 10:16:28 -04:00
|
|
|
'use strict';
|
|
|
|
|
2014-10-14 05:02:04 -04:00
|
|
|
var port = process.env.PORT || 8889;
|
|
|
|
|
2014-08-13 10:16:28 -04:00
|
|
|
module.exports = {
|
|
|
|
server: {
|
2014-10-14 05:02:04 -04:00
|
|
|
port: port,
|
|
|
|
inboundOrigins: (process.env.INBOUND_ORIGINS || ('localhost:' + port)).split(',').map(function(host) {
|
|
|
|
return host.trim();
|
|
|
|
}),
|
|
|
|
outboundPorts: (process.env.OUTBOUND_PORTS || '143,465,587,993').split(',').map(function(i) {
|
|
|
|
return parseInt(i, 10);
|
|
|
|
})
|
2014-08-13 10:16:28 -04:00
|
|
|
},
|
|
|
|
log: {
|
2014-09-17 10:17:14 -04:00
|
|
|
level: "silly",
|
2014-08-13 10:16:28 -04:00
|
|
|
http: ':remote-addr [:date] ":method :url HTTP/:http-version" :status :res[content-length] ":referrer"'
|
|
|
|
}
|
|
|
|
};
|