mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-15 05:09:54 +05:00
83 lines
1.3 KiB
JSON
83 lines
1.3 KiB
JSON
{
|
|
// CGRateS Configuration file
|
|
//
|
|
// Used for cgradmin
|
|
// Starts rater, scheduler
|
|
|
|
"general": {
|
|
"default_tenant": "cgrates.com",
|
|
},
|
|
|
|
"logger": {
|
|
"level": 7
|
|
},
|
|
|
|
"listen": {
|
|
"rpc_json": ":2012", // RPC JSON listening address
|
|
"rpc_gob": ":2013", // RPC GOB listening address
|
|
"http": ":2080", // HTTP listening address
|
|
},
|
|
|
|
|
|
"db": {
|
|
"db_conns": {
|
|
"*default": {
|
|
"db_type": "mongo",
|
|
"db_host": "127.0.0.1",
|
|
"db_port": 27017,
|
|
"db_name": "datadb",
|
|
"db_user": "cgrates"
|
|
},
|
|
"StorDB": {
|
|
"db_type": "mongo",
|
|
"db_host": "127.0.0.1",
|
|
"db_port": 27017,
|
|
"db_name": "cgrates",
|
|
"db_user": "cgrates"
|
|
}
|
|
},
|
|
"items": {
|
|
"*cdrs": {"limit": -1, "ttl": "", "static_ttl": false, "remote":false, "replicate":false, "dbConn": "StorDB"}
|
|
}
|
|
},
|
|
|
|
"cdrs": {
|
|
"enabled": true,
|
|
},
|
|
|
|
"attributes": {
|
|
"enabled": true,
|
|
},
|
|
|
|
"rates": {
|
|
"enabled": true,
|
|
},
|
|
|
|
|
|
"chargers": {
|
|
"enabled": true,
|
|
"attributes_conns": ["*internal"],
|
|
},
|
|
|
|
|
|
"sessions": {
|
|
"enabled": true,
|
|
"attributes_conns": ["*localhost"],
|
|
"chargers_conns": ["*localhost"],
|
|
"rates_conns": ["*localhost"],
|
|
"cdrs_conns": ["*localhost"],
|
|
},
|
|
|
|
"diameter_agent": {
|
|
"enabled": true,
|
|
"asr_template": "*asr",
|
|
"rar_template": "*rar",
|
|
"forced_disconnect": "*asr", // the request to send to diameter on DisconnectSession <*none|*asr|*rar>
|
|
},
|
|
|
|
"admins": {
|
|
"enabled": true,
|
|
},
|
|
|
|
}
|