mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-15 21:29:52 +05:00
106 lines
2.4 KiB
JSON
106 lines
2.4 KiB
JSON
{
|
|
// CGRateS Configuration file
|
|
//
|
|
|
|
|
|
"logger": {
|
|
"level": 7
|
|
},
|
|
|
|
|
|
"listen": {
|
|
"rpc_json": ":2012",
|
|
"rpc_gob": ":2013",
|
|
"http": ":2080",
|
|
"rpc_json_tls":":2022",
|
|
"rpc_gob_tls":":2023",
|
|
"http_tls": ":2280",
|
|
},
|
|
|
|
"tls": {
|
|
"server_certificate" : "/usr/share/cgrates/tls/server.crt", // path to server certificate(must conatin server.crt + ca.crt)
|
|
"server_key":"/usr/share/cgrates/tls/server.key", // path to server key
|
|
"client_certificate" : "/usr/share/cgrates/tls/client.crt", // path to client certificate(must conatin client.crt + ca.crt)
|
|
"client_key":"/usr/share/cgrates/tls/client.key", // path to client key
|
|
"ca_certificate":"/usr/share/cgrates/tls/ca.crt",
|
|
},
|
|
|
|
|
|
"http": { // HTTP server configuration
|
|
"json_rpc_url": "/jsonrpc", // JSON RPC relative URL ("" to disable)
|
|
"ws_url": "/ws", // WebSockets relative URL ("" to disable)
|
|
"freeswitch_cdrs_url": "/freeswitch_json", // Freeswitch CDRS relative URL ("" to disable)
|
|
"http_cdrs": "/cdr_http", // CDRS relative URL ("" to disable)
|
|
"use_basic_auth": false, // use basic authentication
|
|
"auth_users": {}, // basic authentication usernames and base64-encoded passwords (eg: { "username1": "cGFzc3dvcmQ=", "username2": "cGFzc3dvcmQy "})
|
|
},
|
|
|
|
|
|
"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"}
|
|
}
|
|
},
|
|
|
|
"rates": {
|
|
"enabled": true,
|
|
},
|
|
|
|
"resources": {
|
|
"enabled": true,
|
|
"store_interval": "1s",
|
|
"thresholds_conns": ["*localhost"],
|
|
},
|
|
|
|
|
|
"stats": {
|
|
"enabled": true,
|
|
"store_interval": "1s",
|
|
"thresholds_conns": ["*localhost"],
|
|
},
|
|
|
|
"thresholds": {
|
|
"enabled": true,
|
|
"store_interval": "1s",
|
|
},
|
|
|
|
"sessions": {
|
|
"enabled": true,
|
|
"rates_conns": ["*localhost"],
|
|
"resources_conns": ["*localhost"],
|
|
"attributes_conns": ["*localhost"],
|
|
},
|
|
|
|
"attributes": {
|
|
"enabled": true,
|
|
},
|
|
|
|
"cdrs": {
|
|
"enabled": true,
|
|
"chargers_conns":["*internal"],
|
|
},
|
|
|
|
"chargers": {
|
|
"enabled": true,
|
|
"attributes_conns": ["*internal"],
|
|
},
|
|
|
|
}
|