added EMQX for MQTT protocol support
This commit is contained in:
@@ -53,4 +53,15 @@ server {
|
||||
proxy_pass http://mediamtx:8889/;
|
||||
proxy_http_version 1.1;
|
||||
}
|
||||
|
||||
# --- MQTT over WebSocket (EMQX) ---
|
||||
# Clients connect to ws://<host>/mqtt/ws
|
||||
location /mqtt/ws {
|
||||
proxy_pass http://emqx:8083/mqtt; # EMQX WS path is /mqtt
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection $connection_upgrade;
|
||||
proxy_read_timeout 3600s;
|
||||
proxy_send_timeout 3600s;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user