Skip to content

Commit

Permalink
Merge pull request #12186 from cloudamqp/http_auth_backend_docs
Browse files Browse the repository at this point in the history
Document request and connection timeout configs of the http auth backend
  • Loading branch information
michaelklishin authored Aug 30, 2024
2 parents ec0d24b + 29a5e79 commit 86ceac4
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions deps/rabbitmq_auth_backend_http/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,27 @@ If the certificate of your Web Server should be matched against a wildcard certi
{customize_hostname_check, [{match_fun,public_key:pkix_verify_hostname_match_fun(https)}]}
```

## Tuning HTTP client timeouts

You can configure the request timeout and connection timeout (see `timeout` and `connect_timeout` respectively in Erlang/OTP [httpc documentation](https://www.erlang.org/doc/apps/inets/httpc.html#request/5)). The default value is 15 seconds for both.

In `rabbitmq.conf`:

```
auth_http.request_timeout=20000
auth_http.connection_timeout=10000
```

In the [`advanced.config` format](https://www.rabbitmq.com/configure.html#advanced-config-file):

```
{rabbitmq_auth_backend_http,
[{request_timeout, 20_000},
{connection_timeout, 10_000},
...
]}
```

## Debugging

[Enable debug logging](https://rabbitmq.com/logging.html#debug-logging) to see what the backend service receives.
Expand Down

0 comments on commit 86ceac4

Please sign in to comment.