Files
py-eagle-mqtt/Docker/src/conf/broker.py
Evan Richardson ff72639dbb Fix variable name for MQTT_PASSWORD
update deployment api version
2021-03-04 14:02:30 -08:00

34 lines
1.1 KiB
Python

import os
#===========================================================================
#
# MQTT message broker location. Default broker location is port 1883
# for regular and 8883 for SSL.
#
#===========================================================================
host = os.getenv('MQTT_BROKER_IP', '192.168.1.20')
port = os.getenv('MQTT_BROKER_PORT', 1883)
# Keep alive time in seconds. Client sends a ping if no other message
# is sent in this interval.
keepAlive = os.getenv('KEEPALIVE', 60)
#===========================================================================
#
# User name and password (strings) for broker log in.
#
#===========================================================================
user = os.getenv('MQTT_USER', None)
password = os.getenv('MQTT_PASSWORD', None)
#===========================================================================
#
# Secure connection options. See the paho-mqtt docs for details.
#
#===========================================================================
# List of certificate files.
ca_certs = [
]
certFile = None
keyFile = None