mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-15 00:15:15 +08:00
First draft for MQTTnetServer project * Basic support for settings * Nasty code for setting up kestrel from appsettings.json
33 lines
543 B
JSON
33 lines
543 B
JSON
{
|
|
"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": "*"
|
|
}
|