edward3h / minecraft-webhook

GNU General Public License v3.0
19 stars 2 forks source link

Support for MQTT authentication #40

Closed mshuflin closed 1 year ago

mshuflin commented 1 year ago

Is there support for a MQTT server that requires authentication? or only one with "allow_anonymous" set to true?

edward3h commented 1 year ago

It uses Micronaut MQTT v5, so it should work if you add to the mqtt configuration like this:

mqtt:
  client:
    client-id: mc-webhook
    server-uri: tcp://messages:1883
    user-name: user
    password: 12345

I haven't tried it. Let me know if this works for you and I'll do more research if it doesn't.

mshuflin commented 1 year ago

Yes, that works, thank you!