Files
2025-10-19 13:15:57 +02:00

123 lines
2.5 KiB
JSON

{
// CGRateS Configuration file
//
// Used in apier_local_tests
// Starts rater, cdrs and mediator connecting over internal channel
"general": {
"node_id": "TestFailCDRS",
},
"logger": {
"level": 7
},
"efs": { // ExportFailover service
"enabled": true, // starts the EventReader service: <true|false>
"poster_attempts": 1, // number of attempts before considering post request failed (eg: *httpPost, CDR exports)
"failed_posts_dir": "/tmp/failed_posts", // directory path where we store failed requests
"failed_posts_ttl": "1s", // time to wait before writing the failed posts in a single file
},
"db": {
"db_conns": {
"*default": {
"db_type": "redis",
"db_host": "127.0.0.1",
"db_port": 6379,
"db_name": "10",
"db_user": "cgrates"
},
"StorDB": {
"db_type": "mysql",
"db_host": "127.0.0.1",
"db_port": 3306,
"db_name": "cgrates",
"db_user": "cgrates",
"db_password": "CGRateS.org"
}
},
"items": {
"*cdrs": {"limit": -1, "ttl": "", "static_ttl": false, "remote":false, "replicate":false, "dbConn": "StorDB"}
}
},
"cdrs": {
"enabled": true,
"attributes_conns":["*internal"],
"chargers_conns":["*localhost"],
"rates_conns": ["*localhost"],
"stats_conns": ["*localhost"],
"thresholds_conns": ["*localhost"],
"online_cdr_exports": ["s3_test_file"],
"ees_conns": ["*localhost"]
},
"attributes": {
"enabled": true
},
"stats": {
"enabled": true,
"store_interval": "1s",
"thresholds_conns": ["*internal"]
},
"thresholds": {
"enabled": true,
"store_interval": "1s"
},
"chargers": {
"enabled": true,
"attributes_conns": ["*internal"]
},
"admins": {
"enabled": true,
},
"ees": {
"enabled": true,
"attributes_conns": ["*internal"],
"exporters": [
{
"id": "s3_test_file",
"type": "*s3JSONMap",
// export_path for s3: "endpoint"
"export_path": "http://s3.us-east-2.amazonaws.com/",
"opts": {
// posible options for s3:
"awsRegion": "eu-west-2",
"awsKey": "testkey",
"awsSecret": "testsecret",
"s3BucketID": "cgrates-cdrs",
// "awsToken": "sessionToken",
},
"attempts": 1,
"failed_posts_dir": "/tmp/failed_posts",
"fields":[
{"tag": "*originID", "path": "*exp.*originID", "type": "*variable", "value": "~*opts.*originID"},
],
}
]
},
"rates": {
"enabled": true,
},
"loaders": [
{
"id": "*default",
"enabled": true,
"tenant": "cgrates.org",
"lockfile_path": ".cgr.lck",
"tp_in_dir": "/usr/share/cgrates/tariffplans/testit",
"tp_out_dir": ""
}
],
}