diff --git a/README.md b/README.md index e45ed6b..e109121 100644 --- a/README.md +++ b/README.md @@ -185,7 +185,7 @@ export TAGOIO__RELAY__MQTT__BROKER_TLS_CERT="" export TAGOIO__RELAY__MQTT__BROKER_TLS_KEY="" # Subscribe to multiple topics -export TAGOIO__RELAY__MQTT__SUBSCRIBE=["/tago/#"] +export TAGOIO__RELAY__MQTT__SUBSCRIBE=["/device/#"] # Change the path to the configuration file export TAGOIO__RELAY__CONFIG_PATH="/root/.config/.tagoio-mqtt-relay.toml" @@ -208,12 +208,12 @@ Repl **Using Ngrok:** ```bash - ngrok tcp 3001 + ngrok http https://localhost:3000 ``` **Using Tailscale:** ```bash - ngrok funnel 3001 + ngrok funnel 3000 ``` 4. **Network Middleware Endpoint:** To enable the Middleware Endpoint, you need to set the field `Middleware Endpoint` in your Network at TagoIO to the generated URL (e.g., https://abcd1234.ngrok.io) as your Middleware Endpoint in TagoIO. diff --git a/examples/basic-docker-compose/docker-compose.yml b/examples/basic-docker-compose/docker-compose.yml index 0295396..2893533 100644 --- a/examples/basic-docker-compose/docker-compose.yml +++ b/examples/basic-docker-compose/docker-compose.yml @@ -22,7 +22,7 @@ services: # - TAGOIO__RELAY__MQTT__TLS_ENABLED="false" # - TAGOIO__RELAY__MQTT__ADDRESS="localhost" # - TAGOIO__RELAY__MQTT__PORT="1883" - # - TAGOIO__RELAY__MQTT__SUBSCRIBE=["/device/#"] + # - TAGOIO__RELAY__MQTT__SUBSCRIBE=["/device/#"] # - TAGOIO__RELAY__MQTT__USERNAME="my-username" # - TAGOIO__RELAY__MQTT__PASSWORD="my-password" # - TAGOIO__RELAY__MQTT__BROKER_TLS_CA="" diff --git a/src/default_config.toml b/src/default_config.toml index e19b4bf..b1e27f9 100644 --- a/src/default_config.toml +++ b/src/default_config.toml @@ -9,7 +9,7 @@ client_id="tagoio-relay" # Default is tagoio-relay tls_enabled=false address="localhost" port=1883 -subscribe=["/tago/#", "/tago/+"] # MQTT topics to subscribe to +subscribe=["/tago/+"] # MQTT topics to subscribe to username="my-username" password="my-passowrd" # broker_tls_ca="" # The CA certificate. Alternative to username and password