added rabbitmq config to middleware