Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 
 
 

59 righe
1.6 KiB

  1. {
  2. "Kestrel": {
  3. "EndPoints": {
  4. "Http": {
  5. "Url": "http://localhost:80"
  6. },
  7. "Https": {
  8. "Url": "http://localhost:443"
  9. }
  10. }
  11. },
  12. "MQTT": {
  13. /*
  14. Wildcard Addresses:
  15. * - All local IP addresses
  16. localhost - Localhost only
  17. disable - Skip address assignment
  18. */
  19. "TcpEndPoint": {
  20. "Enabled": true,
  21. "IPv4": "*",
  22. "IPv6": "*",
  23. "Port": 1883
  24. },
  25. "EncryptedTcpEndPoint": {
  26. "Enabled": false,
  27. "IPv4": "*",
  28. "IPv6": "*",
  29. "Port": 8883,
  30. "CertificatePath": "/absolute/path/to/pfx"
  31. },
  32. "WebSocketEndPoint": {
  33. "Enabled": true,
  34. "Path": "/mqtt",
  35. "KeepAliveInterval": 120, // In seconds.
  36. "ReceiveBufferSize": 4096,
  37. "AllowedOrigins": [] // List of strings with URLs.
  38. },
  39. "CommunicationTimeout": 15, // In seconds.
  40. "ConnectionBacklog": 0, /* Set 0 to disable */
  41. "EnablePersistentSessions": false,
  42. "MaxPendingMessagesPerClient": 250,
  43. "RetainedApplicationMessages": {
  44. "Persist": true,
  45. "Filename": "RetainedApplicationMessages.json",
  46. "WriteInterval": 10 // In seconds.
  47. },
  48. "EnableDebugLogging": true
  49. },
  50. "Logging": {
  51. "LogLevel": {
  52. "Default": "Debug",
  53. "System": "Information",
  54. "Microsoft": "Information"
  55. }
  56. },
  57. "AllowedHosts": "*"
  58. }