rabbitmq: Add a RABBITMQ_PORT setting.

This commit is contained in:
Alex Vandiver 2023-02-16 11:19:57 -05:00 committed by Tim Abbott
parent 0463b0df7b
commit d3403dde86
3 changed files with 7 additions and 3 deletions

View File

@ -79,6 +79,7 @@ class QueueClient(Generic[ChannelT], metaclass=ABCMeta):
return pika.ConnectionParameters(
settings.RABBITMQ_HOST,
port=settings.RABBITMQ_PORT,
heartbeat=self.rabbitmq_heartbeat,
tcp_options=tcp_options,
credentials=credentials,

View File

@ -168,6 +168,7 @@ CAMO_URI = ""
MEMCACHED_LOCATION = "127.0.0.1:11211"
MEMCACHED_USERNAME = None if get_secret("memcached_password") is None else "zulip@localhost"
RABBITMQ_HOST = "127.0.0.1"
RABBITMQ_PORT = 5672
RABBITMQ_USERNAME = "zulip"
REDIS_HOST = "127.0.0.1"
REDIS_PORT = 6379

View File

@ -574,10 +574,12 @@ SOCIAL_AUTH_SAML_SUPPORT_CONTACT = {
########
## RabbitMQ configuration.
##
## By default, Zulip connects to RabbitMQ running locally on the machine,
## but Zulip also supports connecting to RabbitMQ over the network;
## to use a remote RabbitMQ instance, set RABBITMQ_HOST to the hostname here.
## By default, Zulip connects to RabbitMQ running locally on the
## machine, but Zulip also supports connecting to RabbitMQ over the
## network; to use a remote RabbitMQ instance, set RABBITMQ_HOST, and
## optionally RABBITMQ_PORT, to the hostname and port here.
# RABBITMQ_HOST = "127.0.0.1"
# RABBITMQ_PORT = 5672
## To use another RabbitMQ user than the default "zulip", set RABBITMQ_USERNAME here.
# RABBITMQ_USERNAME = "zulip"