Files
cgrates/data/conf/samples/tutpostgres/cgrates.json
2025-11-19 15:59:20 +01:00

102 lines
1.5 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": "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
},
},
},
"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
},
}