1
0
mirror of https://github.com/daniviga/bite.git synced 2024-12-23 00:31:25 +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;
}
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;