text: 'use strict';
  
  const Dotenv = require('dotenv');
  const Confidence = require('confidence');
  const Toys = require('toys');
  
  // Pull .env into process.env
  Dotenv.config({ path: `${__dirname}/.env` });
  
  // Glue manifest as a confidence store
  module.exports = new Confidence.Store({
      server: {
          host: '0.0.0.0',
          port: {
              $env: 'PORT',
              $coerce: 'number',
              $default: 3000
          },
          debug: {
              $filter: { $env: 'NODE_ENV' },
              $default: {
                  log: ['error'],
                  request: ['error']
              },
              production: {
                  request: ['implementation']
              }
          }
      },
      register: {
          plugins: [
              {
                  plugin: '../lib', // Main plugin
                  options: {}
              },
              {
                  plugin: {
                      $filter: { $env: 'NODE_ENV' },
                      $default: 'hpal-debug',
                      production: Toys.noop
                  }
              },
              {
                  plugin: './plugins/swagger'
              }
          ]
      }
  });
  