Skip to content

Commit

Permalink
Updated HTTP proxy documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
bczoma committed Oct 21, 2024
1 parent 9045c2f commit 42c6890
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 8 deletions.
22 changes: 18 additions & 4 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,24 @@ For example, the password attribute can be set via the `SOLACEBROKER_PASSWORD` e

## HTTP Proxy Support

This provider supports the environment variables `HTTP_PROXY`, `HTTPS_PROXY` and `NO_PROXY` (or the lowercase versions thereof) to configure clients to use the specified proxy server(s).

If the proxy URL contains a [userinfo](https://datatracker.ietf.org/doc/html/rfc3986#section-3.2) subcomponent, the proxy request will pass the provided username and password for proxy authorization.
Example: `https_proxy=http://username:password@proxy:port`
This provider supports the use of HTTP proxies through environment variables.

The environment variables for HTTP proxy configuration are:
* `HTTP_PROXY`: Use to set the proxy when `http://` protocol is specified in the target broker URL in the provider configuration.
* `HTTPS_PROXY`: Use to set the proxy when secure `https://` protocol is specified in the target broker URL in the provider configuration.
* `NO_PROXY`: Comma separated list of broker address domains that should bypass the proxy.

To set the proxy, specify the proxy protocol, FQDN address and port. If `https://` proxy protocol is specified then secure TLS connection will be used between the provider and the proxy. Username and password can be optionally specified for proxy authorization.

Examples:
```shell
# Plain text connection to the target broker via proxy
HTTP_PROXY=http://proxy:port
# Set up TLS tunnel from the provider through the proxy server to reach the broker via secure connection. Note the 'http' proxy protocol specified.
HTTPS_PROXY=http://proxy:port
# As above, additionally uses proxy authentication and secure TLS connection from the provider to the proxy server
HTTPS_PROXY=https://username:password@proxy:port
```

# Release Notes and History

Expand Down
22 changes: 18 additions & 4 deletions templates/index.md.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,24 @@ For example, the password attribute can be set via the `SOLACEBROKER_PASSWORD` e

## HTTP Proxy Support

This provider supports the environment variables `HTTP_PROXY`, `HTTPS_PROXY` and `NO_PROXY` (or the lowercase versions thereof) to configure clients to use the specified proxy server(s).

If the proxy URL contains a [userinfo](https://datatracker.ietf.org/doc/html/rfc3986#section-3.2) subcomponent, the proxy request will pass the provided username and password for proxy authorization.
Example: `https_proxy=http://username:password@proxy:port`
This provider supports the use of HTTP proxies through environment variables.

The environment variables for HTTP proxy configuration are:
* `HTTP_PROXY`: Use to set the proxy when `http://` protocol is specified in the target broker URL in the provider configuration.
* `HTTPS_PROXY`: Use to set the proxy when secure `https://` protocol is specified in the target broker URL in the provider configuration.
* `NO_PROXY`: Comma separated list of broker address domains that should bypass the proxy.

To set the proxy, specify the proxy protocol, FQDN address and port. If `https://` proxy protocol is specified then secure TLS connection will be used between the provider and the proxy. Username and password can be optionally specified for proxy authorization.

Examples:
```shell
# Plain text connection to the target broker via proxy
HTTP_PROXY=http://proxy:port
# Set up TLS tunnel from the provider through the proxy server to reach the broker via secure connection. Note the 'http' proxy protocol specified.
HTTPS_PROXY=http://proxy:port
# As above, additionally uses proxy authentication and secure TLS connection from the provider to the proxy server
HTTPS_PROXY=https://username:password@proxy:port
```

# Release Notes and History

Expand Down

0 comments on commit 42c6890

Please sign in to comment.