mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-19 02:53:06 +08:00
Add new configuartion model
Added new models for review
This commit is contained in:
@@ -1,32 +1,33 @@
|
||||
{
|
||||
"MQTTnetServer": {
|
||||
/*
|
||||
Wildcard Addresses:
|
||||
* - All local IP addresses
|
||||
localhost - Localhost only
|
||||
|
||||
Supported Protocols:
|
||||
0 - HTTP
|
||||
1 - HTTPS
|
||||
20 - MQTT
|
||||
*/
|
||||
"Listen": [
|
||||
{
|
||||
"Address": "localhost",
|
||||
"Port": 5000,
|
||||
"Protocol": 0
|
||||
},
|
||||
{
|
||||
"Address": "*",
|
||||
"Port": 1883,
|
||||
"Protocol": 20
|
||||
}
|
||||
]
|
||||
},
|
||||
"Logging": {
|
||||
"LogLevel": {
|
||||
"Default": "Warning"
|
||||
}
|
||||
},
|
||||
"AllowedHosts": "*"
|
||||
"MQTTnet": {
|
||||
/*
|
||||
Wildcard Addresses:
|
||||
* - All local IP addresses
|
||||
localhost - Localhost only
|
||||
disable - Skip address assignment
|
||||
*/
|
||||
"Listen": {
|
||||
"Enabled": true,
|
||||
"IPv4": "localhost",
|
||||
"IPv6": "localhost",
|
||||
"Port": 1883
|
||||
},
|
||||
"ListenEncryption": {
|
||||
"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": "*"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user