dashboard-with-http.conf.example 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. ## Port or Address to listen on, 0 means disable
  15. bind = "0.0.0.0:18083" ## or just a port number, e.g. 18083
  16. ## Socket acceptor pool size for TCP protocols
  17. num_acceptors = 8
  18. ## Maximum number of simultaneous connections
  19. max_connections = 512
  20. ## Defines the maximum length that the queue of pending connections can grow to
  21. backlog = 1024
  22. ## Send timeout for the socket
  23. send_timeout = 10s
  24. ## Enable IPv6 support, default is false, which means IPv4 only
  25. inet6 = false
  26. ## Disable IPv4-to-IPv6 mapping for the listener
  27. ipv6_v6only = false
  28. ## Enable support for `HAProxy` header
  29. proxy_header = false
  30. }
  31. }