UNPKG

ziron-state

Version:
1 lines 597 B
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const StateServer_1=require("./lib/StateServer"),docker_secret_1=require("docker-secret"),Logger_1=require("./lib/Logger"),variables=Object.assign({},process.env,docker_secret_1.secrets);process.title="Ziron State",new StateServer_1.StateServer({secret:variables.SECRET,port:parseInt(variables.PORT)||7777,path:variables.SERVER_PATH||"/",logLevel:isNaN(parseInt(variables.LOG_LEVEL))?Logger_1.LogLevel.Everything:parseInt(variables.LOG_LEVEL),scaleDelay:parseInt(variables.SCALE_DELAY)||100}).listen().catch(()=>process.exit(1));