cluster-with-etcd-ssl.conf.example 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. ## Cluster discovery using 'etcd'
  2. ## connect to etcd over TLS
  3. cluster {
  4. name = emqxcl
  5. ## Service discovery method for the cluster nodes
  6. discovery_strategy = etcd
  7. ## If true, the node will try to heal network partitions automatically
  8. autoheal = true
  9. etcd {
  10. ## List of endpoint URLs of the etcd cluster
  11. server = "http://ur1,http://ur2"
  12. ## Key prefix used for EMQX service discovery
  13. prefix = emqxcl
  14. ## Expiration time of the etcd key associated with the node.
  15. node_ttl = 1m
  16. ssl_options {
  17. ## Trusted PEM format CA certificates bundle file
  18. cacertfile = "${EMQX_ETC_DIR}/certs/etcd-cacert.pem"
  19. ## PEM format certificates chain file
  20. certfile = "${EMQX_ETC_DIR}/certs/etcd-client-cert.pem"
  21. ## PEM format private key file
  22. keyfile = "${EMQX_ETC_DIR}/certs/etcd-client-key.pem"
  23. ## Enable or disable peer verification
  24. verify = verify_none ## use verify_peer to enable
  25. }
  26. }
  27. }