listeners.quic.conf.example 1.5 KB

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