No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

appsettings.json 1.6 KiB

hace 5 años
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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": "localhost",
  22. "IPv6": "localhost",
  23. "Port": 1883
  24. },
  25. "EncryptedTcpEndPoint": {
  26. "Enabled": false,
  27. "IPv4": "localhost",
  28. "IPv6": "localhost",
  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": false
  49. },
  50. "Logging": {
  51. "LogLevel": {
  52. "Default": "Debug",
  53. "System": "Information",
  54. "Microsoft": "Information"
  55. }
  56. },
  57. "AllowedHosts": "*"
  58. }