Added ZT_ADDR and ZT_TOKEN environment variables to allow easy configuration of zt endpoint and zt token
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user