Files
mtusi2026lab7/infra/rabbitmq/definitions.json
T
2026-11-18 11:36:21 +03:00

88 lines
1.7 KiB
JSON

{
"users": [
{
"name": "worker",
"password_hash": "",
"tags": []
},
{
"name": "dispatcher",
"password_hash": "",
"tags": []
},
{
"name": "operator-client",
"password_hash": "",
"tags": []
}
],
"vhosts": [
{
"name": "attachments"
}
],
"permissions": [
{
"user": "worker",
"vhost": "attachments",
"configure": "^$",
"write": "^$",
"read": "^attachments\\.v1$"
},
{
"user": "dispatcher",
"vhost": "attachments",
"configure": "^$",
"write": "^(attachments\\.publish|amq\\.default)$",
"read": "^attachments\\.v1$"
},
{
"user": "operator-client",
"vhost": "attachments",
"configure": "^attachments.*",
"write": "^(attachments.*|amq\\.default)$",
"read": "^attachments.*"
}
],
"queues": [
{
"name": "attachments.v1",
"vhost": "attachments",
"durable": true,
"auto_delete": false,
"arguments": {
"x-dead-letter-exchange": "attachments.invalid",
"x-dead-letter-routing-key": "invalid"
}
},
{
"name": "attachments.v1.invalid",
"vhost": "attachments",
"durable": true,
"auto_delete": false,
"arguments": {}
}
],
"exchanges": [
{
"name": "attachments.invalid",
"vhost": "attachments",
"type": "direct",
"durable": true,
"auto_delete": false,
"internal": false,
"arguments": {}
}
],
"bindings": [
{
"source": "attachments.invalid",
"vhost": "attachments",
"destination": "attachments.v1.invalid",
"destination_type": "queue",
"routing_key": "invalid",
"arguments": {}
}
]
}