Fix nginx upstream conf for the MQTT stream

This commit is contained in:
Daniele Viganò 2023-09-11 17:43:51 +02:00
parent c7db2bf1a8
commit 2e0da9513d
Signed by: dani
GPG Key ID: DB49AFC03C40EE02
1 changed files with 6 additions and 5 deletions

View File

@ -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;