diff --git a/lb/nightly/rpc/__init__.py b/lb/nightly/rpc/__init__.py index 81816818db654f6db63ddebb4108b8250b8da5c0..9c42cfaa7d8eaef7c72d652ebda1effb126b5857 100644 --- a/lb/nightly/rpc/__init__.py +++ b/lb/nightly/rpc/__init__.py @@ -29,8 +29,8 @@ try: backend_url = conf.get("mysql", {}).get("url") except AttributeError: logging.warning("Broker and Backend not specified, the results will not be kept") - broker_url = "amqp://guest:guest@rabbitmq:5672" - backend_url = "rpc" + broker_url = os.environ.get("BROKER_URL", "amqp://guest:guest@rabbitmq:5672") + backend_url = os.environ.get("BACKEND_URL", "rpc") app = Celery( __name__,