INNER CODE UNIT · JavaScript

startServer

Lonero-Team/Decentralized-Internet · clusterpost/index.js:22

const startServer = async (cluster) => {

    var conf = getConfigFile();

    var tls;
    if(conf.tls && conf.tls.key && conf.tls.cert){
        tls = {
          key: fs.readFileSync(conf.tls.key),
          cert: fs.readFileSync(conf.tls.cert)
        };
    }
    var server_options = { 
        host: conf.host,
        port: conf.port,
        tls: tls
    }
    if(process.env.NODE_ENV == 'test'){
        server_options.routes = {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…