use env var for rabbitmq host
This commit is contained in:
parent
488f173176
commit
cb64c49092
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user