Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "general": {
- "logger":"*stdout",
- "log_level": 7,
- "node_id": "*env:NODE_ID",
- },
- "listen": {
- "rpc_json": ":2070",
- "rpc_gob": ":2071",
- "http": ":2072",
- "rpc_json_tls": ":2073",
- "rpc_gob_tls": ":2074",
- "http_tls": ":8443",
- },
- "tls": {
- "server_certificate" : "/etc/cgrates/tls/server.crt", // path to server certificate
- "server_key":"/etc/cgrates/tls/server.key", // path to server key
- "client_certificate" : "/etc/cgrates/tls/client.crt", // path to client certificate
- "client_key":"/etc/cgrates/tls/client.key", // path to client key
- "ca_certificate":"/etc/cgrates/tls/ca.crt", // path to CA certificate (populate if used self-sign certificate otherwise let it empty)
- "server_policy":0, // server_policy determine the TLS Client Authentication (0-NoClientCert, 1-RequestClientCert, 2-RequireAnyClientCert, 3-VerifyClientCertIfGiven, 4-RequireAndVerifyClientCert)
- "server_name":"",
- },
- "rpc_conns": {
- "*localhost": {
- "strategy": "*first",
- "conns": [{"address": "127.0.0.1:2070", "transport":"*json"}],
- },
- "replication_conns": {
- "strategy": "*broadcast",
- "conns": [
- {"address": "127.0.0.1:2070", "transport":"*json"},
- {"address": "*env:SESSIONS_MASTER_Z1_REPLICATION_ADDRESS", "transport":"*json"},
- {"address": "*env:SESSIONS_MASTER_Z2_REPLICATION_ADDRESS", "transport":"*json"},
- {"address": "*env:SESSIONS_MASTER_Z3_REPLICATION_ADDRESS", "transport":"*json"},
- {"address": "*env:SESSIONS_SLAVE_Z1_REPLICATION_ADDRESS", "transport":"*json"},
- {"address": "*env:SESSIONS_SLAVE_Z2_REPLICATION_ADDRESS", "transport":"*json"},
- {"address": "*env:SESSIONS_SLAVE_Z3_REPLICATION_ADDRESS", "transport":"*json"},
- ],
- }
- },
- "data_db": {
- "db_type": "*env:DATADB_TYPE",
- "db_host": "*env:DATADB_HOST",
- "db_name": "*env:DATADB_NAME",
- "db_port": *env:DATADB_PORT,
- "db_user": "*env:DATADB_USER",
- "db_password": "*env:DATADB_PASSWORD",
- "replication_conns": ["replication_conns"],
- "items":{
- "*accounts":{"remote":false,"replicate":true},
- "*reverse_destinations": {"remote":false,"replicate":true},
- "*destinations": {"remote":false,"replicate":true},
- "*rating_plans": {"remote":false,"replicate":true},
- "*rating_profiles":{"remote":false,"replicate":true},
- "*actions":{"remote":false,"replicate":true},
- "*action_plans": {"remote":false,"replicate":true},
- "*account_action_plans":{"remote":false,"replicate":true},
- "*action_triggers":{"remote":false,"replicate":true},
- "*shared_groups":{"remote":false,"replicate":true},
- "*timings": {"remote":false,"replicate":true},
- "*resource_profiles":{"remote":false,"replicate":true},
- "*resources":{"remote":false,"replicate":true},
- "*statqueue_profiles": {"remote":false,"replicate":true},
- "*statqueues": {"remote":false,"replicate":true},
- "*threshold_profiles": {"remote":false,"replicate":true},
- "*thresholds": {"remote":false,"replicate":true},
- "*filters": {"remote":false,"replicate":true},
- "*supplier_profiles":{"remote":false,"replicate":true},
- "*attribute_profiles":{"remote":false,"replicate":true},
- "*charger_profiles": {"remote":false,"replicate":true},
- "*dispatcher_profiles":{"remote":false,"replicate":true},
- "*dispatcher_hosts":{"remote":false,"replicate":true},
- "*filter_indexes" :{"remote":false,"replicate":true},
- "*load_ids":{"remote":false,"replicate":true},
- },
- },
- "stor_db": {
- "db_type": "*env:STORDB_TYPE",
- "db_host": "*env:STORDB_HOST",
- "db_name": "*env:STORDB_NAME",
- "db_port": *env:STORDB_PORT,
- "db_user": "*env:STORDB_USER",
- "db_password": "*env:STORDB_PASSWORD",
- "items":{
- "session_costs": {"ttl": ""},
- "cdrs": {"ttl": ""},
- "tp_timings":{"ttl": ""},
- "tp_destinations": {"ttl": ""},
- "tp_rates": {"ttl": ""},
- "tp_destination_rates": {"ttl": ""},
- "tp_rating_plans":{"ttl": ""},
- "tp_rating_profiles":{"ttl": ""},
- "tp_shared_groups": {"ttl": ""},
- "tp_actions":{"ttl": ""},
- "tp_action_plans":{"ttl": ""},
- "tp_action_triggers":{"ttl": ""},
- "tp_account_actions": {"ttl": ""},
- "tp_resources":{"ttl": ""},
- "tp_stats":{"ttl": ""},
- "tp_thresholds": {"ttl": ""},
- "tp_filters": {"ttl": ""},
- "tp_suppliers": {"ttl": ""},
- "tp_attributes":{"ttl": ""},
- "tp_chargers":{"ttl": ""},
- "versions": {"ttl": ""},
- "tp_dispatcher_profiles":{"ttl": ""},
- "tp_dispatcher_hosts":{"ttl": ""},
- },
- },
- "migrator": {
- "out_datadb_type": "*env:DATADB_TYPE",
- "out_datadb_port": "*env:DATADB_PORT",
- "out_datadb_name": "*env:DATADB_NAME",
- "out_stordb_type": "*env:STORDB_TYPE",
- "out_stordb_port": "*env:STORDB_PORT",
- "out_stordb_name": "*env:STORDB_NAME",
- // "users_filters":["Account"],
- },
- "caches":{
- "*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},
- "*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},
- "*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", "precache": true},
- "*stat_filter_indexes" : {"limit": 10000, "ttl":"0s", "precache": true},
- "*threshold_filter_indexes" : {"limit": 10000, "ttl":"0s", "precache": true},
- "*supplier_filter_indexes" : {"limit": 10000, "ttl":"0s", "precache": true},
- "*attribute_filter_indexes" : {"limit": 10000, "ttl":"0s", "precache": true},
- "*charger_filter_indexes" : {"limit": 10000, "ttl":"0s", "precache": true},
- "*dispatcher_profiles" : {"limit": 10000, "ttl":"0s", "precache": true},
- "*dispatcher_hosts" : {"limit": 10000, "ttl":"0s", "precache": true},
- "*dispatcher_routes" : {"limit": 10000, "ttl":"0s", "precache": false},
- },
- "filters": {
- "stats_conns": ["*internal"],
- "resources_conns": ["*internal"],
- },
- "rals": {
- "enabled": true, // enable Rating/Accounting service: <true|false>
- "thresholds_conns": ["*internal"], // connections to ThresholdS for account/balance updates, empty to disable thresholds functionality: <""|*internal|x.y.z.y:1234>
- "stats_conns": ["*internal"], // connections to StatS for account/balance updates, empty to disable stats functionality: <""|*internal|x.y.z.y:1234>
- "caches_conns":["*internal"], // connections to CacheS for account/balance updates
- "rp_subject_prefix_matching": true, // enables prefix matching for the rating profile subject
- "remove_expired":true, // enables automatic removal of expired balances
- "max_computed_usage": { // do not compute usage higher than this, prevents memory overload
- "*any": "189h",
- "*voice": "72h",
- "*data": "107374182400",
- "*sms": "10000"
- },
- "max_increments": 1000000,
- "balance_rating_subject":{ // default rating subject in case that balance rating subject is empty
- "*any": "*zero1ns",
- "*voice": "*zero1s",
- "*data": "*zero1ns",
- "*sms": "*zero1ns",
- "*monetary":"*zero1ns",
- "*generic":"*zero1ns",
- },
- },
- "cdrs": {
- "enabled": true,
- "store_cdrs": true,
- "chargers_conns":["*internal"],
- "rals_conns":["*internal"],
- "attributes_conns": ["*localhost"],
- "thresholds_conns": ["*internal"],
- "stats_conns": ["*internal"],
- //"online_cdr_exports": ["http_localhost"]
- },
- "stats": {
- "enabled": true,
- "store_interval": "2s",
- "thresholds_conns": ["*internal"],
- },
- "thresholds": {
- "enabled": true,
- "store_interval": "2s",
- },
- // "thresholds": { // ThresholdS
- // "enabled": false, // starts ThresholdS service: <true|false>.
- // "store_interval": "", // dump cache regularly to dataDB, 0 - dump at start/shutdown: <""|$dur>
- // "indexed_selects":true, // enable profile matching exclusively on indexes
- // //"string_indexed_fields": [], // query indexes based on these fields for faster processing
- // "prefix_indexed_fields": [], // query indexes based on these fields for faster processing
- // "nested_fields": false, // determines which field is checked when matching indexed filters(true: all; false: only the one on the first level)
- // },
- "suppliers": { // SupplierS config
- "enabled": true, // starts SupplierS service: <true|false>.
- "indexed_selects":true, // enable profile matching exclusively on indexes
- //"string_indexed_fields": [], // query indexes based on these fields for faster processing
- "prefix_indexed_fields": [], // query indexes based on these fields for faster processing
- "nested_fields": false, // determines which field is checked when matching indexed filters(true: all; false: only the one on the first level)
- "attributes_conns": ["*internal"], // connections to AttributeS for altering events before supplier queries: <""|*internal|127.0.0.1:2013>
- "resources_conns": ["*internal"], // connections to ResourceS for *res sorting, empty to disable functionality: <""|*internal|x.y.z.y:1234>
- "stats_conns": ["*internal"], // connections to StatS for *stats sorting, empty to disable stats functionality: <""|*internal|x.y.z.y:1234>
- "default_ratio":1 // default ratio used in case of *load strategy
- },
- "chargers": {
- "enabled": true,
- "attributes_conns": ["*internal"],
- },
- "resources": {
- "enabled": true,
- "store_interval": "-1",
- "thresholds_conns": ["*internal"],
- },
- "schedulers": {
- "enabled": true,
- "cdrs_conns": ["*internal"],
- },
- "apiers": {
- "enabled": true,
- "caches_conns":["replication_conns"],
- "scheduler_conns": ["*internal"],
- "attributes_conns": ["*internal"], // connections to AttributeS for CDRExporter
- },
- "attributes": {
- "enabled": true,
- "indexed_selects":true,
- //"string_indexed_fields": [],
- "prefix_indexed_fields": [],
- "nested_fields": false,
- "process_runs": 1,
- },
- "sessions": {
- "enabled": false,
- },
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement