use env var for rabbitmq host
This commit is contained in:
parent
488f173176
commit
cb64c49092
@ -1,4 +1,5 @@
|
|||||||
import asyncio
|
import asyncio
|
||||||
|
import os
|
||||||
import sys
|
import sys
|
||||||
import threading
|
import threading
|
||||||
from queue import Queue
|
from queue import Queue
|
||||||
@ -28,7 +29,7 @@ async def main():
|
|||||||
monitor_thread.start()
|
monitor_thread.start()
|
||||||
|
|
||||||
# RabbitMQ
|
# RabbitMQ
|
||||||
host = 'localhost'
|
host = os.getenv("RABBITMQ_HOST", "localhost")
|
||||||
port = 5672
|
port = 5672
|
||||||
exchange = 'matrix_alerts'
|
exchange = 'matrix_alerts'
|
||||||
producer = RabbitMQProducer(host=host, port=port, exchange=exchange)
|
producer = RabbitMQProducer(host=host, port=port, exchange=exchange)
|
||||||
|
Loading…
Reference in New Issue
Block a user