1
0
mirror of https://github.com/daniviga/bite.git synced 2024-11-26 14:56:13 +01:00

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

View File

@ -54,11 +54,6 @@ http {
server bite:8000; 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 { upstream mqtt-ws {
# We point to the Docker 'service' instead of directly to the container # We point to the Docker 'service' instead of directly to the container
@ -109,6 +104,12 @@ http {
} }
stream { 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 { server {
listen 1883; listen 1883;
proxy_pass mqtt; proxy_pass mqtt;