Skip to content

Commit

Permalink
add ssl flag for connection; fix #65
Browse files Browse the repository at this point in the history
  • Loading branch information
cenkalti committed Jan 21, 2020
1 parent 9d43a83 commit 091a99d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions kuyruk/config.py
Expand Up @@ -35,6 +35,7 @@ class attributes. Additional attributes may be added by extensions.
RABBIT_PASSWORD = 'guest'
"""RabbitMQ password."""

RABBIT_SSL = False
RABBIT_HEARTBEAT = 60
RABBIT_CONNECT_TIMEOUT = 5
RABBIT_READ_TIMEOUT = 5
Expand Down
1 change: 1 addition & 0 deletions kuyruk/kuyruk.py
Expand Up @@ -80,6 +80,7 @@ def connection(self) -> Iterator[amqp.Connection]:
write_timeout=self.config.RABBIT_WRITE_TIMEOUT,
socket_settings=socket_settings,
heartbeat=self.config.RABBIT_HEARTBEAT,
ssl=self.config.RABBIT_SSL,
)
conn.connect()
logger.info('Connected to RabbitMQ')
Expand Down

0 comments on commit 091a99d

Please sign in to comment.