Advertisement
Guest User

Untitled

a guest
May 7th, 2021
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.38 KB | None | 0 0
  1. {
  2. "general": {
  3. "logger":"*stdout",
  4. "log_level": 7,
  5. "node_id": "*env:NODE_ID",
  6. },
  7.  
  8. "listen": {
  9. "rpc_json": ":2070",
  10. "rpc_gob": ":2071",
  11. "http": ":2072",
  12. "rpc_json_tls": ":2073",
  13. "rpc_gob_tls": ":2074",
  14. "http_tls": ":8443",
  15. },
  16.  
  17. "tls": {
  18. "server_certificate" : "/etc/cgrates/tls/server.crt", // path to server certificate
  19. "server_key":"/etc/cgrates/tls/server.key", // path to server key
  20. "client_certificate" : "/etc/cgrates/tls/client.crt", // path to client certificate
  21. "client_key":"/etc/cgrates/tls/client.key", // path to client key
  22. "ca_certificate":"/etc/cgrates/tls/ca.crt", // path to CA certificate (populate if used self-sign certificate otherwise let it empty)
  23. "server_policy":0, // server_policy determine the TLS Client Authentication (0-NoClientCert, 1-RequestClientCert, 2-RequireAnyClientCert, 3-VerifyClientCertIfGiven, 4-RequireAndVerifyClientCert)
  24. "server_name":"",
  25. },
  26.  
  27.  
  28. "rpc_conns": {
  29. "*localhost": {
  30. "strategy": "*first",
  31. "conns": [{"address": "127.0.0.1:2070", "transport":"*json"}],
  32. },
  33. "replication_conns": {
  34. "strategy": "*broadcast",
  35. "conns": [
  36. {"address": "127.0.0.1:2070", "transport":"*json"},
  37. {"address": "*env:SESSIONS_MASTER_Z1_REPLICATION_ADDRESS", "transport":"*json"},
  38. {"address": "*env:SESSIONS_MASTER_Z2_REPLICATION_ADDRESS", "transport":"*json"},
  39. {"address": "*env:SESSIONS_MASTER_Z3_REPLICATION_ADDRESS", "transport":"*json"},
  40. {"address": "*env:SESSIONS_SLAVE_Z1_REPLICATION_ADDRESS", "transport":"*json"},
  41. {"address": "*env:SESSIONS_SLAVE_Z2_REPLICATION_ADDRESS", "transport":"*json"},
  42. {"address": "*env:SESSIONS_SLAVE_Z3_REPLICATION_ADDRESS", "transport":"*json"},
  43. ],
  44. }
  45. },
  46.  
  47. "data_db": {
  48. "db_type": "*env:DATADB_TYPE",
  49. "db_host": "*env:DATADB_HOST",
  50. "db_name": "*env:DATADB_NAME",
  51. "db_port": *env:DATADB_PORT,
  52. "db_user": "*env:DATADB_USER",
  53. "db_password": "*env:DATADB_PASSWORD",
  54. "replication_conns": ["replication_conns"],
  55. "items":{
  56. "*accounts":{"remote":false,"replicate":true},
  57. "*reverse_destinations": {"remote":false,"replicate":true},
  58. "*destinations": {"remote":false,"replicate":true},
  59. "*rating_plans": {"remote":false,"replicate":true},
  60. "*rating_profiles":{"remote":false,"replicate":true},
  61. "*actions":{"remote":false,"replicate":true},
  62. "*action_plans": {"remote":false,"replicate":true},
  63. "*account_action_plans":{"remote":false,"replicate":true},
  64. "*action_triggers":{"remote":false,"replicate":true},
  65. "*shared_groups":{"remote":false,"replicate":true},
  66. "*timings": {"remote":false,"replicate":true},
  67. "*resource_profiles":{"remote":false,"replicate":true},
  68. "*resources":{"remote":false,"replicate":true},
  69. "*statqueue_profiles": {"remote":false,"replicate":true},
  70. "*statqueues": {"remote":false,"replicate":true},
  71. "*threshold_profiles": {"remote":false,"replicate":true},
  72. "*thresholds": {"remote":false,"replicate":true},
  73. "*filters": {"remote":false,"replicate":true},
  74. "*supplier_profiles":{"remote":false,"replicate":true},
  75. "*attribute_profiles":{"remote":false,"replicate":true},
  76. "*charger_profiles": {"remote":false,"replicate":true},
  77. "*dispatcher_profiles":{"remote":false,"replicate":true},
  78. "*dispatcher_hosts":{"remote":false,"replicate":true},
  79. "*filter_indexes" :{"remote":false,"replicate":true},
  80. "*load_ids":{"remote":false,"replicate":true},
  81. },
  82.  
  83. },
  84.  
  85. "stor_db": {
  86. "db_type": "*env:STORDB_TYPE",
  87. "db_host": "*env:STORDB_HOST",
  88. "db_name": "*env:STORDB_NAME",
  89. "db_port": *env:STORDB_PORT,
  90. "db_user": "*env:STORDB_USER",
  91. "db_password": "*env:STORDB_PASSWORD",
  92. "items":{
  93. "session_costs": {"ttl": ""},
  94. "cdrs": {"ttl": ""},
  95. "tp_timings":{"ttl": ""},
  96. "tp_destinations": {"ttl": ""},
  97. "tp_rates": {"ttl": ""},
  98. "tp_destination_rates": {"ttl": ""},
  99. "tp_rating_plans":{"ttl": ""},
  100. "tp_rating_profiles":{"ttl": ""},
  101. "tp_shared_groups": {"ttl": ""},
  102. "tp_actions":{"ttl": ""},
  103. "tp_action_plans":{"ttl": ""},
  104. "tp_action_triggers":{"ttl": ""},
  105. "tp_account_actions": {"ttl": ""},
  106. "tp_resources":{"ttl": ""},
  107. "tp_stats":{"ttl": ""},
  108. "tp_thresholds": {"ttl": ""},
  109. "tp_filters": {"ttl": ""},
  110. "tp_suppliers": {"ttl": ""},
  111. "tp_attributes":{"ttl": ""},
  112. "tp_chargers":{"ttl": ""},
  113. "versions": {"ttl": ""},
  114. "tp_dispatcher_profiles":{"ttl": ""},
  115. "tp_dispatcher_hosts":{"ttl": ""},
  116. },
  117. },
  118.  
  119. "migrator": {
  120. "out_datadb_type": "*env:DATADB_TYPE",
  121. "out_datadb_port": "*env:DATADB_PORT",
  122. "out_datadb_name": "*env:DATADB_NAME",
  123. "out_stordb_type": "*env:STORDB_TYPE",
  124. "out_stordb_port": "*env:STORDB_PORT",
  125. "out_stordb_name": "*env:STORDB_NAME",
  126. // "users_filters":["Account"],
  127. },
  128.  
  129.  
  130. "caches":{
  131. "*destinations": {"limit": 10000, "ttl":"0s", "precache": true},
  132. "*reverse_destinations": {"limit": 10000, "ttl":"0s", "precache": true},
  133. "*rating_plans": {"limit": 10000, "ttl":"0s","precache": true},
  134. "*rating_profiles": {"limit": 10000, "ttl":"0s", "precache": true},
  135. "*actions": {"limit": 10000, "ttl":"0s", "precache": true},
  136. "*action_plans": {"limit": 10000, "ttl":"0s", "precache": true},
  137. "*account_action_plans": {"limit": 10000, "ttl":"0s", "precache": true},
  138. "*action_triggers": {"limit": 10000, "ttl":"0s", "precache": true},
  139. "*shared_groups": {"limit": 10000, "ttl":"0s", "precache": true},
  140. "*resource_profiles": {"limit": 10000, "ttl":"0s", "precache": true},
  141. "*resources": {"limit": 10000, "ttl":"0s", "precache": true},
  142. "*statqueues": {"limit": 10000, "ttl":"0s", "precache": true},
  143. "*statqueue_profiles": {"limit": 10000, "ttl":"0s", "precache": true},
  144. "*thresholds": {"limit": 10000, "ttl":"0s", "precache": true},
  145. "*threshold_profiles": {"limit": 10000, "ttl":"0s", "precache": true},
  146. "*filters": {"limit": 10000, "ttl":"0s", "precache": true},
  147. "*supplier_profiles": {"limit": 10000, "ttl":"0s", "precache": true},
  148. "*attribute_profiles": {"limit": 10000, "ttl":"0s", "precache": true},
  149. "*resource_filter_indexes" :{"limit": 10000, "ttl":"0s", "precache": true},
  150. "*stat_filter_indexes" : {"limit": 10000, "ttl":"0s", "precache": true},
  151. "*threshold_filter_indexes" : {"limit": 10000, "ttl":"0s", "precache": true},
  152. "*supplier_filter_indexes" : {"limit": 10000, "ttl":"0s", "precache": true},
  153. "*attribute_filter_indexes" : {"limit": 10000, "ttl":"0s", "precache": true},
  154. "*charger_filter_indexes" : {"limit": 10000, "ttl":"0s", "precache": true},
  155. "*dispatcher_profiles" : {"limit": 10000, "ttl":"0s", "precache": true},
  156. "*dispatcher_hosts" : {"limit": 10000, "ttl":"0s", "precache": true},
  157. "*dispatcher_routes" : {"limit": 10000, "ttl":"0s", "precache": false},
  158. },
  159.  
  160.  
  161. "filters": {
  162. "stats_conns": ["*internal"],
  163. "resources_conns": ["*internal"],
  164. },
  165.  
  166. "rals": {
  167. "enabled": true, // enable Rating/Accounting service: <true|false>
  168. "thresholds_conns": ["*internal"], // connections to ThresholdS for account/balance updates, empty to disable thresholds functionality: <""|*internal|x.y.z.y:1234>
  169. "stats_conns": ["*internal"], // connections to StatS for account/balance updates, empty to disable stats functionality: <""|*internal|x.y.z.y:1234>
  170. "caches_conns":["*internal"], // connections to CacheS for account/balance updates
  171. "rp_subject_prefix_matching": true, // enables prefix matching for the rating profile subject
  172. "remove_expired":true, // enables automatic removal of expired balances
  173. "max_computed_usage": { // do not compute usage higher than this, prevents memory overload
  174. "*any": "189h",
  175. "*voice": "72h",
  176. "*data": "107374182400",
  177. "*sms": "10000"
  178. },
  179. "max_increments": 1000000,
  180. "balance_rating_subject":{ // default rating subject in case that balance rating subject is empty
  181. "*any": "*zero1ns",
  182. "*voice": "*zero1s",
  183. "*data": "*zero1ns",
  184. "*sms": "*zero1ns",
  185. "*monetary":"*zero1ns",
  186. "*generic":"*zero1ns",
  187. },
  188. },
  189.  
  190. "cdrs": {
  191. "enabled": true,
  192. "store_cdrs": true,
  193. "chargers_conns":["*internal"],
  194. "rals_conns":["*internal"],
  195. "attributes_conns": ["*localhost"],
  196. "thresholds_conns": ["*internal"],
  197. "stats_conns": ["*internal"],
  198. //"online_cdr_exports": ["http_localhost"]
  199. },
  200.  
  201. "stats": {
  202. "enabled": true,
  203. "store_interval": "2s",
  204. "thresholds_conns": ["*internal"],
  205. },
  206.  
  207. "thresholds": {
  208. "enabled": true,
  209. "store_interval": "2s",
  210. },
  211.  
  212. // "thresholds": { // ThresholdS
  213. // "enabled": false, // starts ThresholdS service: <true|false>.
  214. // "store_interval": "", // dump cache regularly to dataDB, 0 - dump at start/shutdown: <""|$dur>
  215. // "indexed_selects":true, // enable profile matching exclusively on indexes
  216. // //"string_indexed_fields": [], // query indexes based on these fields for faster processing
  217. // "prefix_indexed_fields": [], // query indexes based on these fields for faster processing
  218. // "nested_fields": false, // determines which field is checked when matching indexed filters(true: all; false: only the one on the first level)
  219. // },
  220.  
  221.  
  222. "suppliers": { // SupplierS config
  223. "enabled": true, // starts SupplierS service: <true|false>.
  224. "indexed_selects":true, // enable profile matching exclusively on indexes
  225. //"string_indexed_fields": [], // query indexes based on these fields for faster processing
  226. "prefix_indexed_fields": [], // query indexes based on these fields for faster processing
  227. "nested_fields": false, // determines which field is checked when matching indexed filters(true: all; false: only the one on the first level)
  228. "attributes_conns": ["*internal"], // connections to AttributeS for altering events before supplier queries: <""|*internal|127.0.0.1:2013>
  229. "resources_conns": ["*internal"], // connections to ResourceS for *res sorting, empty to disable functionality: <""|*internal|x.y.z.y:1234>
  230. "stats_conns": ["*internal"], // connections to StatS for *stats sorting, empty to disable stats functionality: <""|*internal|x.y.z.y:1234>
  231. "default_ratio":1 // default ratio used in case of *load strategy
  232. },
  233.  
  234. "chargers": {
  235. "enabled": true,
  236. "attributes_conns": ["*internal"],
  237. },
  238.  
  239. "resources": {
  240. "enabled": true,
  241. "store_interval": "-1",
  242. "thresholds_conns": ["*internal"],
  243. },
  244.  
  245.  
  246. "schedulers": {
  247. "enabled": true,
  248. "cdrs_conns": ["*internal"],
  249. },
  250.  
  251.  
  252. "apiers": {
  253. "enabled": true,
  254. "caches_conns":["replication_conns"],
  255. "scheduler_conns": ["*internal"],
  256. "attributes_conns": ["*internal"], // connections to AttributeS for CDRExporter
  257. },
  258.  
  259.  
  260. "attributes": {
  261. "enabled": true,
  262. "indexed_selects":true,
  263. //"string_indexed_fields": [],
  264. "prefix_indexed_fields": [],
  265. "nested_fields": false,
  266. "process_runs": 1,
  267. },
  268.  
  269. "sessions": {
  270. "enabled": false,
  271. },
  272.  
  273.  
  274. }
  275.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement