Skip to content

Commit

Permalink
chore: readme env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
mahnunchik committed Oct 17, 2024
1 parent 209b929 commit 479d1da
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,16 @@ _Requires Python 3.6+_

`python3 -m mqtt_io config.yml`

Some configuration parameters can be passed as environment variables:

- `MQTT_IO_HOST` - Host name or IP address of the MQTT server.
- `MQTT_IO_PORT` - Port number to connect to on the MQTT server.
- `MQTT_IO_USER` - Username to authenticate with on the MQTT server.
- `MQTT_IO_PASSWORD` - Password to authenticate with on the MQTT server.
- `MQTT_IO_PROTOCOL` - Version of the MQTT protocol to use.

Environment variables take precedence over configuration files.

## Configuration Example

Configuration is written in a YAML file which is passed as an argument to the server on startup.
Expand Down

0 comments on commit 479d1da

Please sign in to comment.