lib/config.js
function loadDefault() {
  return {
    port: 8000,
    host: '127.0.0.1',
    root: './',
    logFormat: 'combined',
    middlewares: [
      {
        name: 'cors',
        cfg: {
          origin: true
        }
      },
      {
        name: 'morgan',
        cfg: {}
      },
      {
        name: 'serveStatic',
        cfg: {}
      },
      {
        name: 'serveIndex',
        cfg: {
          icons: true
        }
      }
    ]
  }
}
function loadDefault() {
  return {
    port: 8000,
    host: '127.0.0.1',
    root: './',
    logFormat: 'combined',
    middlewares: [
      {
        name: 'cors',
        cfg: {
          origin: true
        }
      },
      {
        name: 'morgan',
        cfg: {}
      },
      {
        name: 'serveStatic',
        cfg: {}
      },
      {
        name: 'serveIndex',
        cfg: {
          icons: true
        }
      }
    ]
  }
}
function loadDefault ( ) { return { port : 8000 , host : '127.0.0.1' , root : './' , logFormat : 'combined' , middlewares : [ { name : 'cors' , cfg : { origin : true } } , { name : 'morgan' , cfg : { } } , { name : 'serveStatic' , cfg : { } } , { name : 'serveIndex' , cfg : { icons : true } } ] } }
Get default HTTP server configuration.
@return {Object} The HTTP server configuration.
Get default HTTP server configuration .