From 47cbd614d786201b4e66ea5cf43928204a9ba720 Mon Sep 17 00:00:00 2001 From: hong seokho Date: Sun, 28 Jul 2024 18:58:10 +0900 Subject: [PATCH] =?UTF-8?q?feat=20:=20port=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../application/config/queue_config.py | 16 +++++++++++----- backend/AnimatedDrawings/application/config/yml | 2 +- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/backend/AnimatedDrawings/application/config/queue_config.py b/backend/AnimatedDrawings/application/config/queue_config.py index 04d70546a..ea2aa815c 100644 --- a/backend/AnimatedDrawings/application/config/queue_config.py +++ b/backend/AnimatedDrawings/application/config/queue_config.py @@ -5,6 +5,7 @@ class QueueConfig: USERNAME = RootConfig.CONFIG_FILE['rabbitmq']['username'] BROKER_HOST = RootConfig.CONFIG_FILE['rabbitmq']['host'] PASSWORD = RootConfig.CONFIG_FILE['rabbitmq']['password'] + PORT = RootConfig.CONFIG_FILE['rabbitmq']['port'] VIRTUAL_HOST = RootConfig.CONFIG_FILE['rabbitmq']['virtual-host'] CAPSULE_SKIN_REQUEST_QUEUE_NAME = RootConfig.CONFIG_FILE['rabbitmq'][ 'queue_name'] @@ -17,11 +18,16 @@ class QueueConfig: @staticmethod def get_celery_broker_url() -> str: - return 'pyamqp://%s:%s@%s:5672%s' % (QueueConfig.USERNAME, - QueueConfig.PASSWORD, - QueueConfig.BROKER_HOST, - QueueConfig.VIRTUAL_HOST) + return 'pyamqp://%s:%s@%s:%s%s' % (QueueConfig.USERNAME, + QueueConfig.PASSWORD, + QueueConfig.BROKER_HOST, + QueueConfig.VIRTUAL_HOST, + QueueConfig.PORT) @staticmethod def get_kombu_broker_url() -> str: - return f'amqp://{QueueConfig.USERNAME}:{QueueConfig.PASSWORD}@{QueueConfig.BROKER_HOST}/{QueueConfig.VIRTUAL_HOST}' + return 'amqp://%s:%s@%s:%s%s' % (QueueConfig.USERNAME, + QueueConfig.PASSWORD, + QueueConfig.BROKER_HOST, + QueueConfig.VIRTUAL_HOST, + QueueConfig.PORT) diff --git a/backend/AnimatedDrawings/application/config/yml b/backend/AnimatedDrawings/application/config/yml index 443596e26..ec74aa92b 160000 --- a/backend/AnimatedDrawings/application/config/yml +++ b/backend/AnimatedDrawings/application/config/yml @@ -1 +1 @@ -Subproject commit 443596e26746e9818a2ba4a5e8e88056cdbb9e86 +Subproject commit ec74aa92b9ff4e52a07383ea10bdc34614d10456