@phantomchain/core-webhooks
Webhooks for PHANTOM Core
Last updated 2 years ago by meandevstar .
MIT · Original npm · Tarball · package.json
$ cnpm install @phantomchain/core-webhooks 
SYNC missed versions from official npm registry.

PHANTOM Core)

PHANTOM Core - Webhooks

Installation

yarn add @phantomchain/core-webhooks

Configuration

module.exports = {
  enabled: !process.env.PHANTOM_WEBHOOKS_DISABLED,
  database: {
    dialect: 'sqlite',
    storage: `${process.env.PHANTOM_PATH_DATA}/database/webhooks.sqlite`,
    logging: process.env.PHANTOM_DB_LOGGING,
  },
  server: {
    enabled: process.env.PHANTOM_WEBHOOKS_API_ENABLED,
    host: process.env.PHANTOM_WEBHOOKS_HOST || '0.0.0.0',
    port: process.env.PHANTOM_WEBHOOKS_PORT || 4004,
    whitelist: ['127.0.0.1', '::ffff:127.0.0.1'],
    pagination: {
      limit: 100,
      include: ['/api/webhooks'],
    },
  },
}

Security

If you discover a security vulnerability within this package, please send an e-mail to security@phantom.org. All security vulnerabilities will be promptly addressed.

Credits

License

MIT © ArkEcosystem

Current Tags

  • 0.1.4                                ...           latest (2 years ago)

3 Versions

  • 0.1.4                                ...           2 years ago
  • 0.1.2                                ...           2 years ago
  • 0.1.1                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (10)
Dev Dependencies (2)
Dependents (1)

Copyright 2014 - 2017 © taobao.org |