mirror of
https://github.com/mochi-mqtt/server.git
synced 2025-09-26 20:21:12 +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>
71 lines
1.6 KiB
YAML
71 lines
1.6 KiB
YAML
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:
|
|
badger:
|
|
path: badger.db
|
|
gc_interval: 3
|
|
gc_discard_ratio: 0.5
|
|
pebble:
|
|
path: pebble.db
|
|
mode: "NoSync"
|
|
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:
|
|
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
|
|
logging:
|
|
level: INFO
|