mirror of
https://github.com/daniviga/bite.git
synced 2024-11-22 13:16:12 +01:00
Fix nginx upstream conf for the MQTT stream
This commit is contained in:
parent
c7db2bf1a8
commit
2e0da9513d
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user