0.0.6 • Published 4 years ago

@server-status/api-plugin-apache2 v0.0.6

Weekly downloads
6
License
MIT
Repository
gitlab
Last release
4 years ago

Apache2 plugin for Server Status API

GraphQL API for retrieving information about running virtual host via apache2.

Use

It is plugin so you need use the @server-status/api or you can adapt to yours ApolloServer. But if you choose my solution you need to do this steps:

$ npm install @server-status/api @server-status/api-plugin-apache2

or

$ yarn add @server-status/api @server-status/api-plugin-apache2

Create file e.g. index.js

const ServerStatus = require('@server-status/api')

const config = {
  plugins: [
    {
      name: '@server-status/api-plugin-apache2',
      // config: {
      //   user: 'username',
      //   pass: 'password',
      // }
    },
  ],
}

ServerStatus(config).listen()

And run server

$ node index.js

Licence

MIT