UNPKG

ziron-broker

Version:
1 lines 627 B
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const BrokerServer_1=require("./lib/BrokerServer"),docker_secret_1=require("docker-secret"),Logger_1=require("./lib/Logger"),variables=Object.assign({},process.env,docker_secret_1.secrets);process.title="Ziron Broker",new BrokerServer_1.BrokerServer({join:null!=variables.JOIN?variables.JOIN:`${variables.SECRET||""}@${variables.STATE||""}`,port:parseInt(variables.PORT)||8888,path:variables.SERVER_PATH||"/",logLevel:isNaN(parseInt(variables.LOG_LEVEL))?Logger_1.LogLevel.Everything:parseInt(variables.LOG_LEVEL)}).listenAndJoin().catch(()=>process.exit(1));