Hanchon
  • Home
  • BCH Testnet Environment
    • BCH Testnet Environment
    • BitcoinABC (bitcore patches)
    • Bitcore (insight + insight-api)
    • NOMP (mining pool)
    • CPU Miner
    • Fork the network
    • Run regtest
  • Bitprim
    • Introduction
    • Node versions
    • Requirements
    • Node installation
    • Run the node
    • Insight Installation
    • Run Insight (node + REST-API)
    • Query the insight api
  • Bitprim Node Configuration Files
    • Bitcoin Cash Testnet
    • Bitcoin Cash Mainnet
    • Bitcoin Core Testnet
    • Bitcoin Core Mainnet
    • Litecoin Testnet
    • Litecoin Mainnet
  • Bitprim Insight Configuration
    • Insight-API configuration file
  • Utils
    • Install Node Version Manager
    • Install Redis
Powered by GitBook
On this page
  1. Bitprim Insight Configuration

Insight-API configuration file

Bitprim Insight configuration file.

PreviousLitecoin MainnetNextInstall Node Version Manager

Last updated 6 years ago

Configuration file:

This configuration file assumes that the Bitprim node configuration file is located in /root/data/bitprim-node.cfg and the logs will be stored in /root/data/log-bitprim-insight/log-.txt

For a detailed explanation on the configuration file, follow the.

{
  "AcceptStaleRequests" : true,
  "AllowedOrigins": "*",
  "ApiPrefix": "api",
  "Connections": 8,
  "DateInputFormat": "yyyy-MM-dd",
  "EstimateFeeDefault": "0.00001000",
  "ForwardUrl": "",
  "InitializeNode": true,
  "LongResponseCacheDurationInSeconds": 86400,
  "MaxBlockSummarySize": 500,
  "MaxCacheSize": 50000,
  "NodeConfigFile": "/root/data/bitprim-node.cfg",
  "NodeType": "bitprim node",
  "PoolsFile": "pools.json",
  "ProtocolVersion": "70013",
  "Proxy": "",
  "RelayFee": "0.00001",
  "ShortResponseCacheDurationInSeconds": 30,
  "TimeOffset": "0",
  "TransactionsByAddressPageSize": 10,
  "Version": "%API_VERSION%",
  "WebSocketTimeoutInSeconds" : 5,
  "HttpClientTimeoutInSeconds" : 5,
  "SocketPublishRetryIntervalInSeconds": 1,
  "WebsocketForwarderClientRetryDelay": 10,
  "MaxSocketPublishRetries": 3,
  "Serilog":
  {
    "Using": ["Serilog.Sinks.Console", "Serilog.Sinks.File"],
    "MinimumLevel":
    {
      "Default": "Information",
      "Override":
      {
        "Microsoft": "Warning"
      }
    },
    "WriteTo":
    [
      {
        "Name": "Console",
        "Args":
        {
          "outputTemplate" : "[{Timestamp:yyyy-MM-dd HH:mm:ss} {TimeZone}] {Level:u3} {SourceIP} {RequestId} {HttpMethod} {RequestPath} {HttpProtocol} {HttpResponseStatusCode} {HttpResponseLength} {ElapsedMs} {Message:lj}{NewLine}{Exception}"
        }
      },
      {
        "Name": "File",
        "Args":
        {
           "path": "/root/data/log-bitprim-insight/log-.txt",
           "fileSizeLimitBytes": null,
           "retainedFileCountLimit" : 5, 
           "rollingInterval": "Day",
           "outputTemplate" : "[{Timestamp:yyyy-MM-dd HH:mm:ss} {TimeZone}] {Level:u3} {SourceIP} {RequestId} {HttpMethod} {RequestPath} {HttpProtocol} {HttpResponseStatusCode} {HttpResponseLength} {ElapsedMs} {Message:lj}{NewLine}{Exception}"
        }
      }
    ],
    "Enrich": ["FromLogContext"]
  }
}
bitprim-insight readme