Configuration options for the GunDB relay server

interface RelayConfig {
    enableEviction?: boolean;
    enableFileStorage?: boolean;
    faith?: boolean;
    gunOptions?: any;
    host?: string;
    http?: any;
    log?: (message: string, ...args: any[]) => void;
    port?: number;
    store?: any;
    super?: boolean;
    ws?: any;
}

Properties

enableEviction?: boolean

Enable eviction

enableFileStorage?: boolean

Enable file storage

faith?: boolean

Enable faith mode for performance improvements

gunOptions?: any

Additional Gun options

host?: string

Host to bind the relay server to

http?: any

HTTP server options

log?: (message: string, ...args: any[]) => void

Custom logging function

port?: number

Port to run the relay server on

store?: any

Custom store configuration

super?: boolean

Enable super peer mode

ws?: any

WebSocket server options