{ // CGRateS Configuration file // "general": { "log_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/serverCA.crt", // path to server certificate(must conatin server.crt + ca.crt) "tls_server_key":"/usr/share/cgrates/tls/server.key", // path to server key "tls_client_certificate" : "/usr/share/cgrates/tls/clientCA.crt", // path to client certificate(must conatin client.crt + ca.crt) "tls_client_key":"/usr/share/cgrates/tls/client.key", // path to client key }, "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 "}) }, "data_db": { // database used to store runtime data (eg: accounts, cdr stats) "db_type": "redis", // data_db type: "db_port": 6379, // data_db port to reach the database "db_name": "10", // data_db database name to connect to }, "stor_db": { "db_password": "CGRateS.org", }, "cache":{ "destinations": {"limit": 10000, "ttl":"0s", "precache": true}, "reverse_destinations": {"limit": 10000, "ttl":"0s", "precache": true}, "rating_plans": {"limit": 10000, "ttl":"0s","precache": true}, "rating_profiles": {"limit": 10000, "ttl":"0s", "precache": true}, "lcr_rules": {"limit": 10000, "ttl":"0s", "precache": true}, "cdr_stats": {"limit": 10000, "ttl":"0s", "precache": true}, "actions": {"limit": 10000, "ttl":"0s", "precache": true}, "action_plans": {"limit": 10000, "ttl":"0s", "precache": true}, "account_action_plans": {"limit": 10000, "ttl":"0s", "precache": true}, "action_triggers": {"limit": 10000, "ttl":"0s", "precache": true}, "shared_groups": {"limit": 10000, "ttl":"0s", "precache": true}, "aliases": {"limit": 10000, "ttl":"0s", "precache": true}, "reverse_aliases": {"limit": 10000, "ttl":"0s", "precache": true}, "derived_chargers": {"limit": 10000, "ttl":"0s", "precache": true}, "resource_profiles": {"limit": 10000, "ttl":"0s", "precache": true}, "resources": {"limit": 10000, "ttl":"0s", "precache": true}, "statqueues": {"limit": 10000, "ttl":"0s", "precache": true}, "statqueue_profiles": {"limit": 10000, "ttl":"0s", "precache": true}, "thresholds": {"limit": 10000, "ttl":"0s", "precache": true}, "threshold_profiles": {"limit": 10000, "ttl":"0s", "precache": true}, "filters": {"limit": 10000, "ttl":"0s", "precache": true}, "supplier_profiles": {"limit": 10000, "ttl":"0s", "precache": true}, "attribute_profiles": {"limit": 10000, "ttl":"0s", "precache": true}, "resource_filter_indexes" :{"limit": 10000, "ttl":"0s"}, "resource_filter_revindexes" : {"limit": 10000, "ttl":"0s"}, "stat_filter_indexes" : {"limit": 10000, "ttl":"0s"}, "stat_filter_revindexes" : {"limit": 10000, "ttl":"0s"}, "threshold_filter_indexes" : {"limit": 10000, "ttl":"0s"}, "threshold_filter_revindexes" : {"limit": 10000, "ttl":"0s"}, "supplier_filter_indexes" : {"limit": 10000, "ttl":"0s"}, "supplier_filter_revindexes" :{"limit": 10000, "ttl":"0s"}, "attribute_filter_indexes" : {"limit": 10000, "ttl":"0s"}, "attribute_filter_revindexes" : {"limit": 10000, "ttl":"0s"}, }, "rals": { "enabled": true, }, "resources": { "enabled": true, "store_interval": "1s", "thresholds_conns": [ {"address": "*internal"} ], }, "stats": { "enabled": true, "store_interval": "1s", "thresholds_conns": [ {"address": "*internal"} ], }, "thresholds": { "enabled": true, "store_interval": "1s", }, }