0.0.0 • Published 6 years ago

webconsole-console v0.0.0

Weekly downloads
3
License
MPL-2.0
Repository
github
Last release
6 years ago

webconsole-conolse

License: MPL 2.0 Build Status

hapi plugin that exposes web console navigation resources through GraphQL.

Table of Contents

Install

npm install webconsole-console

Options

  • authStrategy: name of the hapi auth strategy to use for /graphql route
  • baseUrl: required base URL of the datacenter where the current console is running
  • consul: object with configuration details for connecting to the local consul agent
    • host: agent host address, defaults to '127.0.0.1'
    • port: agent port, defaults to '8500'
    • secure: enable HTTPS, disabled by default
    • ca: string array of trusted certificates in PEM format

Usage

const server = new Hapi.Server();
await server.register({ plugin: WebConsole, options: { authStrategy, baseUrl: 'https://us-west.site.com' } });

Local development

npm run dev

npm.io npm.io npm.io npm.io

npm run faker

npm.io

0.0.0

6 years ago