Simulator: default MQTT hosts to localhost (not host.docker.internal)
This commit is contained in:
@@ -35,11 +35,11 @@ from influxdb_client.client.write_api import SYNCHRONOUS
|
||||
|
||||
# =============================================================================
|
||||
# Configuration des brokers MQTT
|
||||
# =============================================================================
|
||||
# Brokers MQTT (utiliser host.docker.internal pour accès depuis containers)
|
||||
EMQX_HOST = os.environ.get("EMQX_HOST", "host.docker.internal")
|
||||
# Configuration des brokers MQTT
|
||||
# Par défaut localhost (simulateur tourne sur l'hôte)
|
||||
EMQX_HOST = os.environ.get("EMQX_HOST", "localhost")
|
||||
EMQX_PORT = int(os.environ.get("EMQX_PORT", "11883"))
|
||||
MOSQUITTO_HOST = os.environ.get("MOSQUITTO_HOST", "host.docker.internal")
|
||||
MOSQUITTO_HOST = os.environ.get("MOSQUITTO_HOST", "localhost")
|
||||
MOSQUITTO_PORT = int(os.environ.get("MOSQUITTO_PORT", "1883"))
|
||||
BUNKERM_HOST = os.environ.get("BUNKERM_HOST", "mqtt.digitribe.fr")
|
||||
BUNKERM_PORT = int(os.environ.get("BUNKERM_PORT", "1900"))
|
||||
|
||||
Reference in New Issue
Block a user