dashboard-with-http.conf.example 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. ##--------------------------------------------------------------------
  2. ## Dashboard with HTTP Listener
  3. ##
  4. ## Configuration for EMQX dashboard
  5. ##--------------------------------------------------------------------
  6. ## Note: This is an example of how to configure this feature
  7. ## you should copy and paste the below data into the emqx.conf for working
  8. dashboard {
  9. ## JWT token expiration time
  10. token_expired_time = 60m
  11. ## Support Cross-Origin Resource Sharing (CORS)
  12. cors = false
  13. listeners.http {
  14. ## Whether to enable the listener
  15. enable = true
  16. ## Port or Address to listen on
  17. bind = "0.0.0.0:18083" ## or just a port number, e.g. 18083
  18. ## Socket acceptor pool size for TCP protocols
  19. num_acceptors = 8
  20. ## Maximum number of simultaneous connections
  21. max_connections = 512
  22. ## Defines the maximum length that the queue of pending connections can grow to
  23. backlog = 1024
  24. ## Send timeout for the socket
  25. send_timeout = 10s
  26. ## Enable IPv6 support, default is false, which means IPv4 only
  27. inet6 = false
  28. ## Disable IPv4-to-IPv6 mapping for the listener
  29. ipv6_v6only = false
  30. ## Enable support for `HAProxy` header
  31. proxy_header = false
  32. }
  33. }