Report this

What is the reason for this report?

MQTT broker in App-Platform

Posted on May 6, 2021

Hi,

I succesfully deployed a MQTT broker as a service in the App platform. I’ve used a dockerfile with the eclipse-mosquitto image.

Everything seems fine from the internal console: I can publish and suscribe easily.

But I cannot access from outside, even changing ports in mosquitto.conf

I have two questions:

  1. How do I redirect the ports?
  2. The communication from outside is automagically in a TLS channel or not?

Thanks a lot, Willy Pregliasco



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hey there!

In App Platform all apps would be accessed over port 443 using TLS. No other ports are exposed or available. Internal_ports within App Platform however do support all TCP protocols. A bit more details on MQTT in App Platform can be found here.

Hope it helps! Nate

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.