emqx.conf 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. ## Broad-Announce M4 EMQX overrides.
  2. ##
  3. ## Most defaults are fine; this file is the seam where project-
  4. ## specific knobs (auth backend, ACL file location, listener
  5. ## rate limits) are set in HOCON. See base.hocon for the full
  6. ## schema; this file overrides it via env-var precedence.
  7. ## ── Authentication: built-in-db from a CSV file ──────────────
  8. ## The file is read on first boot; users added later go through
  9. ## the EMQX HTTP API. M11 will swap this for a Postgres-backed
  10. ## authentication chain so users can be added/removed from
  11. ## `sources` in the same migration as HMAC secret rotation.
  12. authentication = [
  13. {
  14. backend = "built_in_database"
  15. mechanism = "password_based"
  16. user_id_type = "username"
  17. password_hash_algorithm { name = "plain", salt_position = "disable" }
  18. }
  19. ]
  20. ## ── Authorization: file-based ACL, default-deny on no-match ──
  21. authorization {
  22. no_match = deny
  23. deny_action = disconnect
  24. cache {
  25. enable = true
  26. max_size = 32
  27. ttl = 1m
  28. }
  29. sources = [
  30. {
  31. type = file
  32. enable = true
  33. path = "/opt/emqx/etc/acl.conf"
  34. }
  35. ]
  36. }
  37. ## ── Default listener: 1883, anonymous=false, max-inflight ────
  38. listeners.tcp.default {
  39. bind = "0.0.0.0:1883"
  40. max_connections = 1024
  41. proxy_protocol = false
  42. }
  43. ## ── Dashboard ─────────────────────────────────────────────────
  44. dashboard {
  45. listeners.http {
  46. bind = 18083
  47. }
  48. default_password_login = true
  49. }