Files
mtusi2026lab7/infra/rabbitmq/definitions.json

84 lines
1.6 KiB
JSON

{
"users": [
{
"name": "publisher",
"password_hash": "",
"hashing_algorithm": "rabbit_password_hashing_sha256",
"tags": []
},
{
"name": "worker",
"password_hash": "",
"hashing_algorithm": "rabbit_password_hashing_sha256",
"tags": []
},
{
"name": "ops-redeliver",
"password_hash": "",
"hashing_algorithm": "rabbit_password_hashing_sha256",
"tags": []
}
],
"vhosts": [
{
"name": "messenger"
}
],
"permissions": [
{
"user": "publisher",
"vhost": "messenger",
"configure": "^$",
"write": "^attachments$",
"read": "^$"
},
{
"user": "worker",
"vhost": "messenger",
"configure": "^$",
"write": "^$",
"read": "^attachment[.]process[.]v1$"
},
{
"user": "ops-redeliver",
"vhost": "messenger",
"configure": "^$",
"write": "^attachments$",
"read": "^$"
}
],
"exchanges": [
{
"name": "attachments",
"vhost": "messenger",
"type": "direct",
"durable": true,
"auto_delete": false,
"internal": false,
"arguments": {}
}
],
"queues": [
{
"name": "attachment.process.v1",
"vhost": "messenger",
"durable": true,
"auto_delete": false,
"arguments": {
"x-queue-type": "quorum",
"x-delivery-limit": -1
}
}
],
"bindings": [
{
"source": "attachments",
"destination": "attachment.process.v1",
"destination_type": "queue",
"vhost": "messenger",
"routing_key": "attachment.process.v1",
"arguments": {}
}
]
}