You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

appsettings.json 1.8 KiB

пре 5 година
пре 5 година
пре 5 година
пре 5 година
пре 5 година
пре 5 година
пре 5 година
пре 5 година
пре 5 година
пре 5 година
пре 5 година
пре 5 година
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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": 10, // Set 0 to disable
  41. "EnablePersistentSessions": true,
  42. "MaxPendingMessagesPerClient": 250,
  43. "RetainedApplicationMessages": {
  44. "Persist": true,
  45. "Path": "RetainedApplicationMessages.json",
  46. "WriteInterval": 10 // In seconds.
  47. },
  48. "EnableDebugLogging": false
  49. },
  50. "Scripting": {
  51. "ScriptsPath": "Scripts",
  52. "IncludePaths": [
  53. "Lib",
  54. "/usr/lib/python2.7",
  55. "C:\\Python27\\Lib"
  56. ]
  57. },
  58. "Logging": {
  59. "LogLevel": {
  60. "Default": "Debug",
  61. "System": "Information",
  62. "Microsoft": "Information"
  63. }
  64. },
  65. "AllowedHosts": "*"
  66. }