Skip to content

Commit

Permalink
Merge branch 'main' into release/0.20.2
Browse files Browse the repository at this point in the history
  • Loading branch information
daltonmatos authored Jul 14, 2023
2 parents 8e15785 + b5add90 commit 3bc52ef
Show file tree
Hide file tree
Showing 12 changed files with 43 additions and 21 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 5 additions & 3 deletions docs-src/userguide/handlers/rabbitmq/ssl-conn.rst
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Esse contexto deve ser passado ao Objeto :py:class:`AMQPConnection <asyncworker.
print(message)
Esse código consegue se conectar a um broker que usa ssl. Nesse caso o asyncworker vai conferir so certificados do servidor. Caso você esteja se conectando a um broker com certificados auto-assinados, você poderá passar o parametro ``verify_ssl=False`` para o objeto :py:class:`AMQPConnection <asyncworker.connections.AMQPConnection>`.
Esse código consegue se conectar a um broker que usa ssl. Nesse caso o asyncworker vai conferir so certificados do servidor. Caso você esteja se conectando a um broker com certificados auto-assinados, você deverá carregar os arquivos de certificado que sejam capazes de validar a conexão com esse broker.


.. code-block:: python
Expand All @@ -49,11 +49,13 @@ Esse código consegue se conectar a um broker que usa ssl. Nesse caso o asyncwor
import ssl
ctx = ssl.create_default_context()
context.load_verify_locations('path/to/cabundle.pem')
amqp_conn = AMQPConnection(host="127.0.0.1",
user="guest",
password="guest",
prefetch_count=256,
ssl=ssl.create_default_context(),
verify_ssl=False
ssl=ctx,
)
app = App(connections=[amqp_conn])
Binary file modified docs/.doctrees/environment.pickle
Binary file not shown.
Binary file modified docs/.doctrees/userguide/handlers/rabbitmq/ssl-conn.doctree
Binary file not shown.
8 changes: 5 additions & 3 deletions docs/_sources/userguide/handlers/rabbitmq/ssl-conn.rst.txt

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified docs/en/.doctrees/environment.pickle
Binary file not shown.
Binary file modified docs/en/.doctrees/userguide/handlers/rabbitmq/ssl-conn.doctree
Binary file not shown.
8 changes: 5 additions & 3 deletions docs/en/_sources/userguide/handlers/rabbitmq/ssl-conn.rst.txt

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/en/searchindex.js

Large diffs are not rendered by default.

8 changes: 5 additions & 3 deletions docs/en/userguide/handlers/rabbitmq/ssl-conn.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/searchindex.js

Large diffs are not rendered by default.

8 changes: 5 additions & 3 deletions docs/userguide/handlers/rabbitmq/ssl-conn.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 3bc52ef

Please sign in to comment.