forked from mtusi2026/mtusi2026lab7
feat: core func lab7
This commit is contained in:
@@ -0,0 +1,86 @@
|
||||
{
|
||||
"users": [
|
||||
{
|
||||
"name": "messenger_api",
|
||||
"password_hash": "",
|
||||
"tags": []
|
||||
},
|
||||
{
|
||||
"name": "messenger_worker",
|
||||
"password_hash": "",
|
||||
"tags": []
|
||||
},
|
||||
{
|
||||
"name": "messenger_dispatcher",
|
||||
"password_hash": "",
|
||||
"tags": []
|
||||
}
|
||||
],
|
||||
"vhosts": [
|
||||
{
|
||||
"name": "messenger"
|
||||
}
|
||||
],
|
||||
"permissions": [
|
||||
{
|
||||
"user": "messenger_api",
|
||||
"vhost": "messenger",
|
||||
"configure": "^$",
|
||||
"write": "^$",
|
||||
"read": "^$"
|
||||
},
|
||||
{
|
||||
"user": "messenger_worker",
|
||||
"vhost": "messenger",
|
||||
"configure": "^$",
|
||||
"write": "^$",
|
||||
"read": "^attachments\\.process\\.v1$"
|
||||
},
|
||||
{
|
||||
"user": "messenger_dispatcher",
|
||||
"vhost": "messenger",
|
||||
"configure": "^$",
|
||||
"write": "^attachments\\.v1$",
|
||||
"read": "^$"
|
||||
}
|
||||
],
|
||||
"exchanges": [
|
||||
{
|
||||
"name": "attachments.v1",
|
||||
"vhost": "messenger",
|
||||
"type": "direct",
|
||||
"durable": true,
|
||||
"auto_delete": false,
|
||||
"arguments": {}
|
||||
}
|
||||
],
|
||||
"queues": [
|
||||
{
|
||||
"name": "attachments.invalid.v1",
|
||||
"vhost": "messenger",
|
||||
"durable": true,
|
||||
"auto_delete": false,
|
||||
"arguments": {}
|
||||
},
|
||||
{
|
||||
"name": "attachments.process.v1",
|
||||
"vhost": "messenger",
|
||||
"durable": true,
|
||||
"auto_delete": false,
|
||||
"arguments": {
|
||||
"x-dead-letter-exchange": "",
|
||||
"x-dead-letter-routing-key": "attachments.invalid.v1"
|
||||
}
|
||||
}
|
||||
],
|
||||
"bindings": [
|
||||
{
|
||||
"source": "attachments.v1",
|
||||
"vhost": "messenger",
|
||||
"destination": "attachments.process.v1",
|
||||
"destination_type": "queue",
|
||||
"routing_key": "attachment.process.v1",
|
||||
"arguments": {}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
[rabbitmq_auth_mechanism_ssl].
|
||||
@@ -0,0 +1,12 @@
|
||||
listeners.tcp = none
|
||||
distribution.listener.interface = 127.0.0.1
|
||||
listeners.ssl.default = 5671
|
||||
ssl_options.cacertfile = /run/ca/ca.crt
|
||||
ssl_options.certfile = /run/tls/tls.crt
|
||||
ssl_options.keyfile = /run/tls/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
|
||||
definitions.import_backend = local_filesystem
|
||||
definitions.local.path = /etc/rabbitmq/definitions.json
|
||||
Reference in New Issue
Block a user