webconsole-console

0.0.0 • Public • Published

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 run faker

Readme

Keywords

none

Package Sidebar

Install

npm i webconsole-console

Weekly Downloads

1

Version

0.0.0

License

MPL-2.0

Unpacked Size

23.5 kB

Total Files

8

Last publish

Collaborators

  • reverentgeek
  • wyatt