forked from mtusi2026/mtusi2026lab7
Реализация на 5
This commit is contained in:
@@ -0,0 +1,87 @@
|
||||
{
|
||||
"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": {}
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user