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": {}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
[rabbitmq_auth_mechanism_ssl].
|
||||
@@ -0,0 +1,11 @@
|
||||
listeners.tcp = none
|
||||
listeners.ssl.default = 5671
|
||||
ssl_options.cacertfile = /run/identity/ca.crt
|
||||
ssl_options.certfile = /run/identity/tls.crt
|
||||
ssl_options.keyfile = /run/identity/tls.key
|
||||
ssl_options.verify = verify_peer
|
||||
ssl_options.fail_if_no_peer_cert = true
|
||||
auth_mechanisms.1 = EXTERNAL
|
||||
ssl_cert_login_from = common_name
|
||||
loopback_users = none
|
||||
load_definitions = /run/identity/definitions.json
|
||||
Reference in New Issue
Block a user