listeners.quic.conf.example 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. ##--------------------------------------------------------------------
  2. ## QUIC Listener
  3. ##
  4. ## Add a QUIC Listener
  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. ## Note: Modifying the 'quicname' to what you need
  9. listeners.quic.quicname {
  10. ## Whether to enable the listener
  11. enable = true
  12. ## Port or Address to listen on
  13. bind = 14567 ## or with an IP, e.g. "127.0.0.1:14567"
  14. ## When publishing or subscribing, prefix all topics with a mountpoint string
  15. mountpoint = "${clientid}/msg"
  16. ## Client authentication
  17. ## Type:
  18. ## - true :: enable
  19. ## - false :: disable
  20. ## - quick_deny_anonymous :: denied immediately without if username is not provided
  21. enable_authn = true
  22. ## Socket acceptor pool size for TCP protocols
  23. acceptors = 16
  24. ## Maximum number of simultaneous connections
  25. ## Type: infinity | Integer
  26. max_connections = infinity
  27. ## Trusted PEM format CA certificates bundle file
  28. cacertfile = "data/certs/cacert.pem"
  29. ## PEM format certificates chain file
  30. certfile = "data/certs/cert.pem"
  31. ## PEM format private key file
  32. keyfile = "data/certs/key.pem"
  33. ## Enable or disable peer verification
  34. verify = verify_none ## to verify_peer to enable
  35. ## TLS cipher suite names
  36. ciphers = ["TLS_AES_256_GCM_SHA384", "TLS_AES_128_GCM_SHA256", "TLS_CHACHA20_POLY1305_SHA256"]
  37. }