moleculerjs / moleculer

:rocket: Progressive microservices framework for Node.js
https://moleculer.services/
MIT License
6.17k stars 587 forks source link

Redis SSL URI not reconized as a Redis type discoverer #1259

Closed Freezystem closed 11 months ago

Freezystem commented 1 year ago

Prerequisites

Please answer the following questions for yourself before submitting an issue.

Current Behavior

Moleculer does not recognize redis SSL URIs as valid Redis URIs.

Expected Behavior

Redis SSL URI should be identified as a Redis type discoverer.

Failure Information

Issue can be mitigated using more explicit config:

discoverer: {
    type: "Redis",
    options: { redis: "rediss://redis-server:6379" },
},

Steps to Reproduce

Start a broket with rediss:// URI as discoverer

Reproduce code snippet

const broker = new ServiceBroker({
    discoverer: "rediss://redis-server:6379"
});

Context

Failure Logs

Unable to create ServiceBroker. BrokerOptionsError: Invalid Discoverer type 'rediss://redis-server:6379'