@nzz/q-server
Version:
__Q__ is a system that lets journalists create visual elements for stories. It is developed by [NZZ Storytelling](https://www.nzz.ch/storytelling) and used in the [NZZ](https://www.nzz.ch) newsroom.
47 lines (42 loc) • 886 B
JavaScript
const Confidence = require('confidence');
const misc = {
port: 3001,
cache: {
serverCacheTime: 1,
cacheControl: 1
},
logging: {
good: {
options: {
reporters: {
consoleReporter: [
{
module: 'good-squeeze',
name: 'Squeeze',
args: [{ log: '*', 'request-error': '*' }]
},
{
module: 'white-out',
args: [{
password: 'remove',
}]
},
{
module: 'good-console',
args: [{ format: '', utc: false }]
},
'stdout'
]
}
}
}
},
toolRuntimeConfig: {}
}
const store = new Confidence.Store(misc);
module.exports.get = (key) => {
return store.get(key)
}
module.exports.meta = (key) => {
return store.meta(key)
}