Files
cgrates/data/conf/samples/tutpostgres/cgrates.json
2025-11-05 17:52:03 +01:00

113 lines
2.0 KiB
JSON

{
// CGRateS Configuration file
//
// Used for cgradmin
// Starts rater, scheduler
"logger": {
"level": 7
},
"listen": {
"rpc_json": ":2012", // RPC JSON listening address
"rpc_gob": ":2013", // RPC GOB listening address
"http": ":2080", // HTTP listening address
},
"db": { // database used to store runtime data (eg: accounts, cdr stats)
"db_conns": {
"*default": {
"db_type": "redis", // data_db type: <redis|mongo>
"db_host": "127.0.0.1",
"db_port": 6379, // data_db port to reach the database
"db_name": "10", // data_db database name to connect to
"db_user": "cgrates",
},
"StorDB": { // The id of the DB connection
"db_type": "postgres", // db type: <internal|redis|mysql|mongo|postgres>
"db_host": "127.0.0.1",
"db_port": 5432, // db port to reach the database
"db_name": "cgrates", // the host to connect to
"db_user": "cgrates",
"db_password": "CGRateS.org" // password to use when connecting to the database
},
},
"items": {
"*cdrs": {"limit": -1, "ttl": "", "static_ttl": false, "remote":false, "replicate":false, "dbConn": "StorDB"},
"*accounts": {"limit": -1, "ttl": "", "static_ttl": false, "remote":false, "replicate":false, "dbConn": "StorDB"}
}
},
"cdrs": {
"enabled": true, // start the CDR Server service: <true|false>
},
"users": {
"enabled": true,
"indexes": ["Uuid"],
},
"resources": {
"enabled": true,
"store_interval": "1s",
"thresholds_conns": ["*internal"]
},
"stats": {
"enabled": true,
"store_interval": "1s",
"thresholds_conns": ["*internal"],
},
"thresholds": {
"enabled": true,
"store_interval": "1s",
},
"attributes": {
"enabled": true,
},
"routes": {
"enabled": true,
},
"chargers": {
"enabled": true,
"attributes_conns": ["*internal"],
},
"sessions": {
"enabled": true,
"chargers_conns": ["*internal"],
"rates_conns": ["*internal"],
"cdrs_conns": ["*internal"],
},
"admins": {
"enabled": true,
},
"filters": {
"accounts_conns": ["*internal"],
},
"accounts": {
"enabled": true
},
}