mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-16 09:13:02 +08:00
44 lines
1.1 KiB
JSON
44 lines
1.1 KiB
JSON
{
|
|
"Kestrel": {
|
|
"EndPoints": {
|
|
"Http": {
|
|
"Url": "http://localhost:80"
|
|
},
|
|
"Https": {
|
|
"Url": "http://localhost:443"
|
|
}
|
|
}
|
|
},
|
|
"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/pfx"
|
|
},
|
|
"CommunicationTimeout": 15, /* In seconds */
|
|
"ConnectionBacklog": 0, /* Set 0 to disable */
|
|
"EnablePersistentSessions": false,
|
|
"MaxPendingMessagesPerClient": 250
|
|
},
|
|
"Logging": {
|
|
"LogLevel": {
|
|
"Default": "Warning"
|
|
}
|
|
},
|
|
"AllowedHosts": "*"
|
|
}
|