Files
cgrates/data/conf/samples/cdrsv1processeventmongo/cgrates.json
2025-10-19 13:15:57 +02:00

97 lines
1.6 KiB
JSON

{
// CGRateS Configuration file
//
// Used in general_tests
"general": {
"poster_attempts": 1,
"failed_posts_ttl": "1",
},
"logger": {
"level": 7
},
"db": {
"db_conns": {
"*default": {
"db_type": "mongo",
"db_host": "127.0.0.1",
"db_port": 27017,
"db_name": "10",
"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"}
}
},
"attributes": {
"enabled": true,
},
"chargers":{
"enabled": true,
"attributes_conns": ["*internal"],
},
"ees": {
"enabled": true,
"attributes_conns": ["*internal"],
"exporters": [
{
"id": "amqp_test_file",
"type": "*amqpJSONMap",
"export_path": "amqps://guest:guest@localhost:256733/",
"attempts": 1,
"synchronous": true,
"fields":[
{"tag": "*originID", "path": "*exp.*originID", "type": "*variable", "value": "~*opts.*originID"},
],
}
]
},
"stats": {
"enabled": true,
"store_interval": "-1",
},
"thresholds": {
"enabled": true,
"store_interval": "-1",
},
"cdrs": {
"enabled": true,
"rates_conns": ["*internal"],
"attributes_conns": ["*internal"],
"chargers_conns": ["*internal"],
"stats_conns": ["*internal"],
"thresholds_conns": ["*internal"],
"online_cdr_exports": ["amqp_test_file"],
"ees_conns": ["*localhost"]
},
"admins": {
"enabled": true,
},
"caches":{
"partitions": {
"*rpc_responses": {"limit": -1, "ttl": "2s", "static_ttl": false}
},
},
}