moscajs / mosca

MQTT broker as a module
mosca.io
3.2k stars 513 forks source link

Redis TLS option not supported #803

Open Strongbyte-ES opened 4 years ago

Strongbyte-ES commented 4 years ago

The ioredis package is v1 where recently v4 supports rediss (Redis TLS) protocol e.g. to use a managed Redis database on Digital Ocean.

Besides updating the ioredis dependency, the lib/persistence/redis.js _buildClient function requires the addition of:

  if (this.options.tls) {
    options.tls = this.options.tls;
  }