Added ZT_ADDR and ZT_TOKEN environment variables to allow easy configuration of zt endpoint and zt token

This commit is contained in:
Tsukasa Hiiragi
2017-12-13 19:25:16 +02:00
parent 0ae8ddf00b
commit a865eedba0
2 changed files with 17 additions and 15 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ const util = require('util');
const readFile = util.promisify(fs.readFile);
let _token = null;
let _token = process.env.ZT_TOKEN;
exports.get = async function() {
if (_token) {