Skip to content

Commit 6a8c463

Browse files
authored
chore: restore content removed by mistake (redhat-developer#811)
Signed-off-by: Fabrice Flore-Thébault <[email protected]>
1 parent c1d01fe commit 6a8c463

File tree

2 files changed

+42
-4
lines changed

2 files changed

+42
-4
lines changed

assemblies/assembly-configuring-a-proxy.adoc

+8-4
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,16 @@
55

66
In a network restricted environment, configure {product} to use your proxy to access remote network resources.
77

8-
You can run the {product-very-short} application behind a corporate proxy by setting any of the following environment variables before starting the application:
8+
You can run the {product-short} application behind a corporate proxy by setting any of the following environment variables before starting the application:
99

10-
* `HTTP_PROXY`: Denotes the proxy to use for HTTP requests.
11-
* `HTTPS_PROXY`: Denotes the proxy to use for HTTPS requests.
10+
`HTTP_PROXY`:: Denotes the proxy to use for HTTP requests.
11+
`HTTPS_PROXY`:: Denotes the proxy to use for HTTPS requests.
12+
13+
`NO_PROXY`:: Set the environment variable to bypass the proxy for certain domains. The variable value is a comma-separated list of hostnames or IP addresses that can be accessed without the proxy, even if one is specified.
14+
15+
16+
include::modules/configuring-a-proxy/con-understanding-the-no_proxy-exclusion-rules.adoc[leveloffset=+1]
1217

13-
Additionally, set the `NO_PROXY` environment variable to bypass the proxy for certain domains. The variable value is a comma-separated list of hostnames or IP addresses that can be accessed without the proxy, even if one is specified.
1418

1519
include::modules/configuring-a-proxy/proc-configuring-proxy-in-operator-deployment.adoc[leveloffset=+1]
1620

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
[id='understanding-the-no-proxy-exclusion-rules']
2+
= Understanding the `NO_PROXY` exclusion rules
3+
4+
`NO_PROXY` is a comma or space-separated list of hostnames or IP addresses, with optional port numbers. If the input URL matches any of the entries listed in `NO_PROXY`, a direct request fetches that URL, for example, bypassing the proxy settings.
5+
6+
[NOTE]
7+
====
8+
The default value for `NO_PROXY` in {product-very-short} is `localhost,127.0.0.1`. If you want to override it, include at least `localhost` or `localhost:7007` in the list. Otherwise, the {product-very-short} backend might fail.
9+
====
10+
11+
Matching follows the rules below:
12+
13+
* `NO_PROXY=*` will bypass the proxy for all requests.
14+
15+
* Space and commas might separate the entries in the `NO_PROXY` list. For example, `NO_PROXY="localhost,example.com"`, or `NO_PROXY="localhost example.com"`, or `NO_PROXY="localhost, example.com"` would have the same effect.
16+
17+
* If `NO_PROXY` contains no entries, configuring the `HTTP(S)_PROXY` settings makes the backend send all requests through the proxy.
18+
19+
* The backend does not perform a DNS lookup to determine if a request should bypass the proxy or not. For example, if DNS resolves `example.com` to `1.2.3.4`, setting `NO_PROXY=1.2.3.4` has no effect on requests sent to `example.com`. Only requests sent to the IP address `1.2.3.4` bypass the proxy.
20+
21+
* If you add a port after the hostname or IP address, the request must match both the host/IP and port to bypass the proxy. For example, `NO_PROXY=example.com:1234` would bypass the proxy for requests to `http(s)://example.com:1234`, but not for requests on other ports, like `http(s)://example.com`.
22+
23+
* If you do not specify a port after the hostname or IP address, all requests to that host/IP address will bypass the proxy regardless of the port. For example, `NO_PROXY=localhost` would bypass the proxy for requests sent to URLs like `http(s)://localhost:7077` and `http(s)://localhost:8888`.
24+
25+
* IP Address blocks in CIDR notation will not work. So setting `NO_PROXY=10.11.0.0/16` will not have any effect, even if the backend sends a request to an IP address in that block.
26+
27+
* Supports only IPv4 addresses. IPv6 addresses like `::1` will not work.
28+
29+
* Generally, the proxy is only bypassed if the hostname is an exact match for an entry in the `NO_PROXY` list. The only exceptions are entries that start with a dot (`.`) or with a wildcard (`*`). In such a case, bypass the proxy if the hostname ends with the entry.
30+
31+
[NOTE]
32+
====
33+
List the domain and the wildcard domain if you want to exclude a given domain and all its subdomains. For example, you would set `NO_PROXY=example.com,.example.com` to bypass the proxy for requests sent to `http(s)://example.com` and `http(s)://subdomain.example.com`.
34+
====

0 commit comments

Comments
 (0)