Interface HttpServerDappetizerConfig

Configures HTTP server of this indexer app mainly for monitoring it. This is used as a part of DappetizerConfigUsingDb.

Example

Sample usage (all properties specified explicitly) within dappetizer.config.ts file:

import { DappetizerConfigUsingDb } from '@tezos-dappetizer/database';

const config: DappetizerConfigUsingDb = {
httpServer: {
enabled: false,
host: '0.0.0.0',
port: 3600,
},
... // Other config parts.
};

export default config;

Hierarchy

  • HttpServerDappetizerConfig

Properties

Properties

enabled?: boolean

Boolean indicating if HTTP server should be enabled.

Default

false

host?: string

The hostname or IP address on which HTTP server should listen.

Default

'0.0.0.0' (listening on all IP addresses)

port?: number

The port on which HTTP server should listen.

Limits

An integer between 0 (which means random free port) and 65_535.

Default

3600

Generated using TypeDoc