moleculer-go / moleculer

🚀 Progressive microservices framework for Go - based and compatible with https://github.com/moleculerjs/moleculer
MIT License
144 stars 27 forks source link

authorization options for NATS transport #69

Closed vpashka closed 5 years ago

vpashka commented 5 years ago

Hello,

nats.Options have User, Password (Token, TLSConfig etc). How can I transfer authorization parameters when creating a broker?

    var brk = broker.New(&moleculer.Config{
                ...
        Transporter:        "nats://localhost:6222",
    })
vpashka commented 5 years ago

I think I found the answer myself

Transporter:        "nats://user:pass@localhost:4222",