forked from mtusi2026/mtusi2026lab7
30 lines
1.7 KiB
JSON
30 lines
1.7 KiB
JSON
{
|
|
"rabbit_version": "4.2.9",
|
|
"vhosts": [{"name": "messenger"}],
|
|
"users": [
|
|
{"name": "api", "password_hash": "", "hashing_algorithm": "rabbit_password_hashing_sha256", "tags": []},
|
|
{"name": "worker", "password_hash": "", "hashing_algorithm": "rabbit_password_hashing_sha256", "tags": []}
|
|
],
|
|
"permissions": [
|
|
{"user": "api", "vhost": "messenger", "configure": "^$", "write": "^attachments$", "read": "^$"},
|
|
{"user": "worker", "vhost": "messenger", "configure": "^$", "write": "^$", "read": "^attachments\\.process$"}
|
|
],
|
|
"exchanges": [
|
|
{"name": "attachments", "vhost": "messenger", "type": "direct", "durable": true, "auto_delete": false, "internal": false, "arguments": {}},
|
|
{"name": "attachments.dlx", "vhost": "messenger", "type": "direct", "durable": true, "auto_delete": false, "internal": false, "arguments": {}}
|
|
],
|
|
"queues": [
|
|
{"name": "attachments.process", "vhost": "messenger", "durable": true, "auto_delete": false,
|
|
"arguments": {"x-queue-type": "quorum", "x-delivery-limit": 10, "x-dead-letter-exchange": "attachments.dlx",
|
|
"x-dead-letter-routing-key": "attachment.dead"}},
|
|
{"name": "attachments.dead", "vhost": "messenger", "durable": true, "auto_delete": false,
|
|
"arguments": {"x-queue-type": "quorum", "x-max-length": 100000}}
|
|
],
|
|
"bindings": [
|
|
{"source": "attachments", "vhost": "messenger", "destination": "attachments.process", "destination_type": "queue",
|
|
"routing_key": "attachment.process.v1", "arguments": {}},
|
|
{"source": "attachments.dlx", "vhost": "messenger", "destination": "attachments.dead", "destination_type": "queue",
|
|
"routing_key": "attachment.dead", "arguments": {}}
|
|
]
|
|
}
|