Skip to content
This repository was archived by the owner on Jan 2, 2026. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions server/mq/core/connection_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,11 @@ def on_connection_open_error(self, connection, err):
self._connected = False

def _build_amqp_url(self) -> str:
user = os.getenv("SERVER_RABBIT_USER", "guest")
password = os.getenv("SERVER_RABBIT_PASS", "guest")
host = os.getenv("RABBIT_HOST", "rabbitmq-host")
port = os.getenv("RABBIT_PORT", "5672")
vhost = os.getenv("RABBIT_VHOST", "/")
user = os.getenv("SERVER_RABBIT_USER", "guest").strip()
password = os.getenv("SERVER_RABBIT_PASS", "guest").strip()
host = os.getenv("RABBIT_HOST", "rabbitmq-host").strip()
port = os.getenv("RABBIT_PORT", "5672").strip()
vhost = os.getenv("RABBIT_VHOST", "/").strip()
vhost = urllib.parse.quote(vhost, safe="")
return f"amqp://{user}:{password}@{host}:{port}/{vhost}"

Expand Down