You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In environments where direct internet access is restricted, you can route synthetic test traffic through a proxy server by configuring the following environment variables:
148
148
149
-
* ``HTTP_PROXY``: Specifies the proxy server for HTTP traffic.
149
+
* ``http_proxy``: Specifies the proxy server for HTTP traffic.
``HTTP_PROXY`` and ``HTTPS_PROXY`` are set to route traffic through a proxy at ``http://172.17.0.1:1234``.
171
+
``http_proxy`` and ``https_proxy`` are set to route traffic through a proxy at ``http://172.17.0.1:1234``.
171
172
172
-
``NO_PROXY`` is configured to bypass the proxy for local addresses and specific domains like .signalfx.com and .amazonaws.com.
173
+
``no_proxy`` is configured to bypass the proxy for local addresses and specific domains like .signalfx.com and .amazonaws.com.
173
174
174
175
Ensure that these variables are correctly configured to comply with your network policies. This setup allows the synthetic tests to communicate securely and efficiently in a controlled network environment.
175
176
176
-
When using runner, it's important to correctly configure the proxy settings to avoid issues with browser-based tests. The following steps should be followed when setting up their environment:
177
+
When using a private runner, it's important to correctly configure the proxy settings to avoid issues with browser-based tests. The following steps should be followed when setting up their environment:
177
178
178
-
1. :strong:`Ensure proper NO_PROXY setup`:
179
+
1. :strong:`Ensure proper no_proxy setup`:
179
180
180
-
- When configuring ``NO_PROXY`` always include the following addresses:
181
+
- When configuring ``no_proxy`` always include the following addresses:
181
182
182
183
- ``127.0.0.1`` (for localhost communication)
183
184
- ``localhost`` (for resolving local tests)
184
185
185
186
These addresses ensure that internal services and tests run correctly without routing through a proxy, preventing potential failures.
186
187
187
-
2. :strong:`Merging HTTP_PROXY and http_proxy`:
188
-
189
-
- The system automatically handles both ``HTTP_PROXY`` and ``http_proxy`` environment variables. If you define one of these, ensure the other is also set, or they will be automatically merged at start-up.
190
-
191
188
3. :strong:`Dockerfile defaults`:
192
189
193
-
- By default, the runner will set the ``NO_PROXY`` variable in the Dockerfile to include ``127.0.0.1``. If you override ``NO_PROXY``, you must ensure that ``127.0.0.1`` and ``localhost`` are still present, or browser tests may fail.
194
-
190
+
- By default, the private runner sets the ``no_proxy`` variable in the Dockerfile to include ``127.0.0.1``. If you override ``no_proxy``, you must ensure that ``127.0.0.1`` and ``localhost`` are still present, or browser tests may fail.
195
191
196
192
193
+
.. note::
194
+
Lower case variable names take precedence and are best practice.
0 commit comments