mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-16 01:03:01 +08:00
59 lines
1.6 KiB
JSON
59 lines
1.6 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
|
|
*/
|
|
"TcpEndPoint": {
|
|
"Enabled": true,
|
|
"IPv4": "*",
|
|
"IPv6": "*",
|
|
"Port": 1883
|
|
},
|
|
"EncryptedTcpEndPoint": {
|
|
"Enabled": false,
|
|
"IPv4": "*",
|
|
"IPv6": "*",
|
|
"Port": 8883,
|
|
"CertificatePath": "/absolute/path/to/pfx"
|
|
},
|
|
"WebSocketEndPoint": {
|
|
"Enabled": true,
|
|
"Path": "/mqtt",
|
|
"KeepAliveInterval": 120, // In seconds.
|
|
"ReceiveBufferSize": 4096,
|
|
"AllowedOrigins": [] // List of strings with URLs.
|
|
},
|
|
"CommunicationTimeout": 15, // In seconds.
|
|
"ConnectionBacklog": 0, /* Set 0 to disable */
|
|
"EnablePersistentSessions": false,
|
|
"MaxPendingMessagesPerClient": 250,
|
|
"RetainedApplicationMessages": {
|
|
"Persist": true,
|
|
"Filename": "RetainedApplicationMessages.json",
|
|
"WriteInterval": 10 // In seconds.
|
|
},
|
|
"EnableDebugLogging": true
|
|
},
|
|
"Logging": {
|
|
"LogLevel": {
|
|
"Default": "Debug",
|
|
"System": "Information",
|
|
"Microsoft": "Information"
|
|
}
|
|
},
|
|
"AllowedHosts": "*"
|
|
}
|