mathmlben
Version:
Visualization for goldstandard
22 lines (20 loc) • 653 B
JavaScript
;
var yaml = require('js-yaml');
var BBPromise = require('bluebird');
var fs = BBPromise.promisifyAll(require('fs'));
var mathoidcfg = yaml.safeLoad(fs.readFileSync('config.yaml'));
//console.log(JSON.stringify(mathoidcfg))
module.exports = {
host: 'localhost:' + mathoidcfg.gouldi.port,
slack: {
webhook: 'https://hooks.slack.com/services/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',
channels: {
exceptions: '#nodejs_exceptions'
}
},
logs: {
dir: '/logs',
level: mathoidcfg.logging.level
},
mathoidUrl: "http://localhost:" + mathoidcfg.services[0].conf.port
};