IBAX
1.0.0
1.0.0
  • LANGS
  • IBAX Documentation
  • IBAX Documentation
    • concepts
      • IBAX Overview
      • The IBAX Network
      • Decentralized Proof-of-Authority Consensus
      • FAQ
      • Terms and Definitions
    • IBAX Dokumentation
      • concepts
        • IBAX Overview
        • The IBAX Network
        • Decentralized Proof-of-Authority Consensus
        • FAQ
        • Terms and Definitions
      • howtos
        • Deployment of A IBAX Network
      • reference
        • RESTful API v2
        • Server Configuration File
        • Synchronized Monitoring Tool
        • Platform Parameters
      • topics
        • Daemon
        • Smart Contracts
        • Template Language
        • Compiler and Virtual Machine
      • tutorials
        • Tutorial for application development
    • IBAX Documentación
      • concepts
        • IBAX Overview
        • The IBAX Network
        • Decentralized Proof-of-Authority Consensus
        • FAQ
        • Terms and Definitions
      • howtos
        • Deployment of A IBAX Network
      • reference
        • RESTful API v2
        • Server Configuration File
        • Synchronized Monitoring Tool
        • Platform Parameters
      • topics
        • Daemon
        • Smart Contracts
        • Template Language
        • Compiler and Virtual Machine
      • tutorials
        • Tutorial for application development
    • IBAX Documentation
      • concepts
        • IBAX Overview
        • The IBAX Network
        • Decentralized Proof-of-Authority Consensus
        • FAQ
        • Terms and Definitions
      • howtos
        • Deployment of A IBAX Network
      • reference
        • RESTful API v2
        • Server Configuration File
        • Synchronized Monitoring Tool
        • Platform Parameters
      • topics
        • Daemon
        • Smart Contracts
        • Template Language
        • Compiler and Virtual Machine
      • tutorials
        • Tutorial for application development
    • howtos
      • Deployment of A IBAX Network
    • IBAX Documentazione
      • concepts
        • IBAX Overview
        • The IBAX Network
        • Decentralized Proof-of-Authority Consensus
        • FAQ
        • Terms and Definitions
      • howtos
        • Deployment of A IBAX Network
      • reference
        • RESTful API v2
        • Server Configuration File
        • Synchronized Monitoring Tool
        • Platform Parameters
      • topics
        • Daemon
        • Smart Contracts
        • Template Language
        • Compiler and Virtual Machine
      • tutorials
        • Tutorial for application development
    • IBAX ドキュメンテーション
      • concepts
        • IBAX Overview
        • The IBAX Network
        • Decentralized Proof-of-Authority Consensus
        • FAQ
        • Terms and Definitions
      • howtos
        • Deployment of A IBAX Network
      • reference
        • RESTful API v2
        • Server Configuration File
        • Synchronized Monitoring Tool
        • Platform Parameters
      • topics
        • Daemon
        • Smart Contracts
        • Template Language
        • Compiler and Virtual Machine
      • tutorials
        • Tutorial for application development
    • reference
      • RESTful API v2
      • Server Configuration File
      • Synchronized Monitoring Tool
      • Platform Parameters
    • topics
      • Daemon
      • Smart Contracts
      • Template Language
      • Compiler and Virtual Machine
    • tutorials
      • Tutorial for application development
    • IBAX 文档
    • zh-CN
      • concepts
        • IBAX Overview
    • zh-CN
      • concepts
        • The IBAX Network
    • zh-CN
      • concepts
        • Decentralized Proof-of-Authority Consensus
    • zh-CN
      • concepts
        • FAQ
    • zh-CN
      • concepts
        • Terms and Definitions
    • zh-CN
      • howtos
        • Deployment of A IBAX Network
    • zh-CN
      • reference
        • RESTful API v2
    • zh-CN
      • reference
        • Server Configuration File
    • zh-CN
      • reference
        • Synchronized Monitoring Tool
    • zh-CN
      • reference
        • Platform Parameters
    • zh-CN
      • topics
        • Daemon
    • zh-CN
      • topics
        • Smart Contracts
    • zh-CN
      • topics
        • Template Language
    • zh-CN
      • topics
        • Compiler and Virtual Machine
    • zh-CN
      • tutorials
        • Tutorial for application development
Powered by GitBook
On this page
  • Introduction to the server configuration file
  • Location
  • Sections
  • An example configuration file

Was this helpful?

  1. IBAX Documentation
  2. zh-CN
  3. reference

Server Configuration File

In this section, we will introduce parameters in the server configuration file.

Introduction to the server configuration file

The server configuration file defines the node configuration of IBAX.

Location

This file is located in the working directory of the server and is named config.toml.

Sections

The configuration file consists the following sections:

general section

It defines the working directory DataDir, the first block directory FirstBlockPath and other parameters.

[TCPServer]

It defines the TCP service parameters.

TCPServer is used for the network interaction between nodes.

[HTTP]

It defines the HTTP service parameters.

HTTPServer provides RESTful APIs.

[DB]

It defines parameters of the PostgreSQL node database.

[StatsD]

It defines parameters of the node operation indicator collector StatsD.

[Centrifugo]

It defines parameters of the notification service Centrifugo.

[Log]

It defines parameters of the log service Log.

[TokenMovement]

It defines parameters of the token circulation service TokenMovement.

An example configuration file

PidFilePath \= "/IBAX-data/go-ibax.pid"
LockFilePath \= "/IBAX-data/go-ibax.lock"
DataDir \= "/IBAX-data"
KeysDir \= "/IBAX-data"
TempDir \= "/var/folders/_l/9md_m4ms1651mf5pbng1y1xh0000gn/T/IBAX-temp"
FirstBlockPath \= "/IBAX-data/1block"
TLS \= false
TLSCert \= ""
TLSKey \= ""
OBSMode \= "none"
HTTPServerMaxBodySize \= 1048576
MaxPageGenerationTime \= 3000
NodesAddr \= []

[TCPServer]
  Host \= "127.0.0.1"
  Port \= 7078

[HTTP]
  Host \= "127.0.0.1"
  Port \= 7079

[DB]
  Name \= "IBAX"
  Host \= "127.0.0.1"
  Port \= 5432
  User \= "postgres"
  Password \= "123456"
  LockTimeout \= 5000

[StatsD]
  Host \= "127.0.0.1"
  Port \= 8125
  Name \= "IBAX"

[Centrifugo]
  Secret \= "127.0.0.1"
  URL \= "127.0.0.1"

[Log]
  LogTo \= "stdout"
  LogLevel \= "ERROR"
  LogFormat \= "text"
  [Log.Syslog]
  Facility \= "kern"
  Tag \= "go-ibax"

[TokenMovement]
  Host \= ""
  Port \= 0
  Username \= ""
  Password \= ""
  To \= ""
  From \= ""
  Subject \= ""
PreviousreferenceNextzh-CN

Last updated 3 years ago

Was this helpful?