diff --git a/src/main.py b/src/main.py index 463754e..e8555d4 100644 --- a/src/main.py +++ b/src/main.py @@ -1,4 +1,5 @@ import asyncio +import os import sys import threading from queue import Queue @@ -28,7 +29,7 @@ async def main(): monitor_thread.start() # RabbitMQ - host = 'localhost' + host = os.getenv("RABBITMQ_HOST", "localhost") port = 5672 exchange = 'matrix_alerts' producer = RabbitMQProducer(host=host, port=port, exchange=exchange)