mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-15 13:19:53 +05:00
Was failing on the Jetstream JWTAuth case with error: nats: API error: code=500 err_code=10047 description=insufficient storage resources available The issue was with the previously generated credentials. Generated them again and added the program used as a comment at the end of the file for future reference"
87 lines
2.3 KiB
JSON
87 lines
2.3 KiB
JSON
{
|
|
|
|
"general": {
|
|
"log_level": 7
|
|
},
|
|
|
|
"data_db": {
|
|
"db_type": "*internal"
|
|
},
|
|
|
|
"stor_db": {
|
|
"db_type": "*internal"
|
|
},
|
|
|
|
"ees": {
|
|
"enabled": true,
|
|
"exporters": [
|
|
{
|
|
"id": "nats_processed",
|
|
"type": "*nats_json_map",
|
|
"export_path": "nats://localhost:4222",
|
|
"attempts": 1,
|
|
"opts": {
|
|
"natsJetStream": true,
|
|
"natsSubject": "cgrates_cdrs_processed"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
|
|
"ers": {
|
|
"enabled": true,
|
|
"sessions_conns":[],
|
|
"ees_conns": ["*internal"],
|
|
"readers": [
|
|
{
|
|
"id": "nats_reader1",
|
|
"type": "*nats_json_map",
|
|
"source_path": "nats://127.0.0.1:4222",
|
|
"processed_path": "nats://127.0.0.1:4222",
|
|
"ees_success_ids": ["nats_processed"],
|
|
"opts": {
|
|
"natsJetStream": true,
|
|
"natsConsumerName": "cgrates",
|
|
"natsStreamName": "stream",
|
|
"natsSubject": "cgrates_cdrs",
|
|
"natsQueueID": "queue",
|
|
"natsJetStreamMaxWait": "5s"
|
|
},
|
|
"flags": ["*dryrun"],
|
|
"fields":[
|
|
{"tag": "cdr_template", "type": "*template", "value": "cdr_template"}
|
|
]
|
|
},
|
|
{
|
|
"id": "nats_reader2",
|
|
"type": "*nats_json_map",
|
|
"source_path": "nats://127.0.0.1:4222",
|
|
"processed_path": "nats://127.0.0.1:4222",
|
|
"ees_success_ids": ["nats_processed"],
|
|
"opts": {
|
|
"natsJetStream": true,
|
|
"natsConsumerName": "cgrates",
|
|
"natsStreamName": "stream",
|
|
"natsSubject": "cgrates_cdrs",
|
|
"natsQueueID": "queue",
|
|
"natsJetStreamMaxWait": "5s"
|
|
},
|
|
"flags": ["*dryrun"],
|
|
"fields":[
|
|
{"tag": "cdr_template", "type": "*template", "value": "cdr_template"}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
|
|
|
|
"templates": {
|
|
"cdr_template": [
|
|
{"tag": "Account", "path": "*cgreq.Account", "type": "*variable", "value": "~*req.Account", "mandatory": true},
|
|
{"tag": "Subject", "path": "*cgreq.Subject", "type": "*variable", "value": "~*req.Subject", "mandatory": true},
|
|
{"tag": "Destination", "path": "*cgreq.Destination", "type": "*variable", "value": "~*req.Destination", "mandatory": true}
|
|
]
|
|
}
|
|
|
|
}
|