mirror of
https://github.com/mochi-mqtt/server.git
synced 2025-12-24 12:58:05 +08:00
* Fix the bug where inline subscribers do not receive messages after all non-inline clients unsubscribe. * Bypassing asdine/storm and directly using bbolt. * Fixed erroneous removal of FileContributor. --------- Co-authored-by: JB <28275108+mochi-co@users.noreply.github.com>
97 lines
2.1 KiB
JSON
97 lines
2.1 KiB
JSON
{
|
|
"listeners": [
|
|
{
|
|
"type": "tcp",
|
|
"id": "file-tcp1",
|
|
"address": ":1883"
|
|
},
|
|
{
|
|
"type": "ws",
|
|
"id": "file-websocket",
|
|
"address": ":1882"
|
|
},
|
|
{
|
|
"type": "healthcheck",
|
|
"id": "file-healthcheck",
|
|
"address": ":1880"
|
|
}
|
|
],
|
|
"hooks": {
|
|
"debug": {
|
|
"enable": true
|
|
},
|
|
"storage": {
|
|
"pebble": {
|
|
"path": "pebble.db",
|
|
"mode": "NoSync"
|
|
},
|
|
"badger": {
|
|
"path": "badger.db",
|
|
"gc_interval": 3,
|
|
"gc_discard_ratio": 0.5
|
|
},
|
|
"bolt": {
|
|
"path": "bolt.db",
|
|
"bucket": "mochi"
|
|
},
|
|
"redis": {
|
|
"h_prefix": "mc",
|
|
"username": "mochi",
|
|
"password": "melon",
|
|
"address": "localhost:6379",
|
|
"database": 1
|
|
}
|
|
},
|
|
"auth": {
|
|
"allow_all": false,
|
|
"ledger": {
|
|
"auth": [
|
|
{
|
|
"username": "peach",
|
|
"password": "password1",
|
|
"allow": true
|
|
}
|
|
],
|
|
"acl": [
|
|
{
|
|
"remote": "127.0.0.1:*"
|
|
},
|
|
{
|
|
"username": "melon",
|
|
"filters": null,
|
|
"melon/#": 3,
|
|
"updates/#": 2
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"options": {
|
|
"client_net_write_buffer_size": 2048,
|
|
"client_net_read_buffer_size": 2048,
|
|
"sys_topic_resend_interval": 10,
|
|
"inline_client": true,
|
|
"capabilities": {
|
|
"maximum_message_expiry_interval": 100,
|
|
"maximum_client_writes_pending": 8192,
|
|
"maximum_session_expiry_interval": 86400,
|
|
"maximum_packet_size": 0,
|
|
"receive_maximum": 1024,
|
|
"maximum_inflight": 8192,
|
|
"topic_alias_maximum": 65535,
|
|
"shared_sub_available": 1,
|
|
"minimum_protocol_version": 3,
|
|
"maximum_qos": 2,
|
|
"retain_available": 1,
|
|
"wildcard_sub_available": 1,
|
|
"sub_id_available": 1,
|
|
"compatibilities": {
|
|
"obscure_not_authorized": true,
|
|
"passive_client_disconnect": false,
|
|
"always_return_response_info": false,
|
|
"restore_sys_info_on_restart": false,
|
|
"no_inherited_properties_on_ack": false
|
|
}
|
|
}
|
|
}
|
|
} |