# 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 \= ""
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://ibax.gitbook.io/docs/docs/zh-cn-8/reference/backend-config.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
