create matrix config subsection

master
lub 7 years ago
parent 0eeccfb805
commit bc18211cee

@ -1,6 +1,7 @@
baseurl: 'https://example.org'
accesstoken: 't0ps3cr3t'
userid: '@jd:example.org'
matrix:
baseurl: 'https://example.org'
accesstoken: 't0ps3cr3t'
userid: '@jd:example.org'
infrastructure: '/home/qwer/scripts'
ssh:

@ -5,9 +5,9 @@ const yaml = require('js-yaml');
const config = yaml.safeLoad(fs.readFileSync('config.yaml'));
const matrixclient = sdk.createClient({
baseUrl: config.baseurl,
accessToken: config.accesstoken,
userId: config.userid
baseUrl: config.matrix.baseurl,
accessToken: config.matrix.accesstoken,
userId: config.matrix.userid
});
const ssh = new node_ssh();