emqx.conf 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. ## NOTE:
  2. ## Configs in this file might be overridden by:
  3. ## 1. Environment variables which start with 'EMQX_' prefix
  4. ## 2. File $EMQX_NODE__DATA_DIR/configs/cluster-override.conf
  5. ## 3. File $EMQX_NODE__DATA_DIR/configs/local-override.conf
  6. ##
  7. ## The *-override.conf files are overwritten at runtime when changes
  8. ## are made from EMQX dashboard UI, management HTTP API, or CLI.
  9. ## All configuration details can be found in emqx.conf.example
  10. node {
  11. cookie = "influx"
  12. data_dir = "data"
  13. }
  14. log {
  15. file_handlers.default {
  16. level = warning
  17. file = "log/emqx.log"
  18. }
  19. }
  20. cluster {
  21. name = emqxcl
  22. discovery_strategy = manual
  23. }
  24. listeners.tcp.default {
  25. bind = "0.0.0.0:1883"
  26. max_connections = 1024000
  27. }
  28. listeners.ssl.default {
  29. bind = "0.0.0.0:8883"
  30. max_connections = 512000
  31. ssl_options {
  32. keyfile = "etc/certs/key.pem"
  33. certfile = "etc/certs/cert.pem"
  34. cacertfile = "etc/certs/cacert.pem"
  35. }
  36. }
  37. listeners.ws.default {
  38. bind = "0.0.0.0:8083"
  39. max_connections = 1024000
  40. websocket.mqtt_path = "/mqtt"
  41. }
  42. listeners.wss.default {
  43. bind = "0.0.0.0:8084"
  44. max_connections = 512000
  45. websocket.mqtt_path = "/mqtt"
  46. ssl_options {
  47. keyfile = "etc/certs/key.pem"
  48. certfile = "etc/certs/cert.pem"
  49. cacertfile = "etc/certs/cacert.pem"
  50. }
  51. }
  52. # listeners.quic.default {
  53. # enabled = true
  54. # bind = "0.0.0.0:14567"
  55. # max_connections = 1024000
  56. # keyfile = "etc/certs/key.pem"
  57. # certfile = "etc/certs/cert.pem"
  58. #}
  59. dashboard {
  60. listeners.http {
  61. bind = 18083
  62. }
  63. default_username = "admin"
  64. default_password = "public"
  65. }
  66. authorization {
  67. deny_action = ignore
  68. no_match = allow
  69. cache = { enable = true }
  70. sources = [
  71. {
  72. type = file
  73. enable = true
  74. # This file is immutable to EMQX.
  75. # Once new rules are created from dashboard UI or HTTP API,
  76. # the file 'data/authz/acl.conf' is used instead of this one
  77. path = "etc/acl.conf"
  78. }
  79. ]
  80. }
  81. include influx-bridge.conf