From 2e0da9513d6d0b46af8a022689947b8b48b953cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniele=20Vigan=C3=B2?= Date: Mon, 11 Sep 2023 17:43:51 +0200 Subject: [PATCH] Fix nginx upstream conf for the MQTT stream --- docker/ingress/nginx.conf | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/docker/ingress/nginx.conf b/docker/ingress/nginx.conf index 8ec19b6..9327cb2 100644 --- a/docker/ingress/nginx.conf +++ b/docker/ingress/nginx.conf @@ -54,11 +54,6 @@ http { server bite:8000; } - upstream mqtt { - # We point to the Docker 'service' instead of directly to the container - # Docker does then a DNS round-robin internally - server broker:1883; - } upstream mqtt-ws { # We point to the Docker 'service' instead of directly to the container @@ -109,6 +104,12 @@ http { } stream { + upstream mqtt { + # We point to the Docker 'service' instead of directly to the container + # Docker does then a DNS round-robin internally + server broker:1883; + } + server { listen 1883; proxy_pass mqtt;