mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-17 01:33:03 +08:00
34 lines
904 B
JSON
34 lines
904 B
JSON
{
|
|
"MQTT": {
|
|
/*
|
|
Wildcard Addresses:
|
|
* - All local IP addresses
|
|
localhost - Localhost only
|
|
disable - Skip address assignment
|
|
*/
|
|
"Endpoint": {
|
|
"Enabled": true,
|
|
"IPv4": "localhost",
|
|
"IPv6": "localhost",
|
|
"Port": 1883
|
|
},
|
|
"EndpointEncryption": {
|
|
"Enabled": false,
|
|
"IPv4": "localhost",
|
|
"IPv6": "localhost",
|
|
"Port": 8883,
|
|
"CertificatePath": "/absolute/path/to/certificate"
|
|
},
|
|
"CommunicationTimeout": 15, /* In seconds */
|
|
"ConnectionBacklog": 0, /* Set 0 to disable */
|
|
"EnablePersistentSessions": false,
|
|
"MaxPendingMessagesPerClient": 250
|
|
},
|
|
"Logging": {
|
|
"LogLevel": {
|
|
"Default": "Warning"
|
|
}
|
|
},
|
|
"AllowedHosts": "*"
|
|
}
|