create matrix config subsection

develop
lub 7 years ago
parent 3641023322
commit ad4f9243ca

@ -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();