dashboard-with-https.conf.example 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. ## Dashboard on HTTPS
  2. ##
  3. ## Configure HTTPS for EMQX dashboard
  4. dashboard {
  5. ## JWT token expiration time
  6. token_expired_time = 60m
  7. ## Support Cross-Origin Resource Sharing (CORS)
  8. cors = false
  9. listeners.https {
  10. # bind = 0 to disable this listener
  11. bind = "0.0.0.0:18084" ## or just a port number, e.g. 18084
  12. ssl_options {
  13. ## PEM format certificates chain.
  14. ## Server certificate as the first one,
  15. ## followed by its immediate issuer certificate
  16. ## then the issuer's issuer certificate, and so on.
  17. ## Root CA certificate is optional.
  18. ## The path prefix (only prefix) can be an environment variable.
  19. certfile = "${EMQX_ETC_DIR}/certs/cert.pem"
  20. ## PEM format private key
  21. keyfile = "${EMQX_ETC_DIR}/certs/key.pem"
  22. ## Optional. When need to verify client certificates, list trusted client's root CA certificates in this file
  23. # cacertfile = "${EMQX_ETC_DIR}/certs/cacert.pem"
  24. ## Optional. Force client to send their certificate chain during TLS handshake.
  25. # fail_if_no_peer_cert = true
  26. }
  27. ## Socket acceptor pool size for TCP protocols
  28. num_acceptors = 8
  29. ## Maximum number of concurrent connections
  30. max_connections = 512
  31. ## Defines the maximum length that the queue of pending connections can grow to
  32. backlog = 1024
  33. ## Send timeout for the socket
  34. send_timeout = 10s
  35. ## Enable IPv6 support, default is false, which means IPv4 only
  36. inet6 = false
  37. ## Disable IPv4-to-IPv6 mapping for the listener
  38. ipv6_v6only = false
  39. ## Enable support for ProxyProtocol v2 header
  40. proxy_header = false
  41. }
  42. }