From 5f4fa30416b3a9a0081c1f21615853b5350d5f34 Mon Sep 17 00:00:00 2001 From: Maurice Date: Thu, 13 Aug 2026 16:04:19 +0200 Subject: [PATCH] docs: say where the outbound proxy switch actually lives The variables only take effect when Node runs with NODE_USE_ENV_PROXY=1, and that is set in the image. This page also covers Helm, Unraid and source installs, where nothing sets it, so following it there changed nothing. Also recommend NO_PROXY. Without it the proxy sees every request TREK makes to itself, including the container health check. --- wiki/Environment-Variables.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/wiki/Environment-Variables.md b/wiki/Environment-Variables.md index e6b47f9aa..c01addc4e 100644 --- a/wiki/Environment-Variables.md +++ b/wiki/Environment-Variables.md @@ -111,6 +111,13 @@ proxying is disabled by default. > **Note:** Proxy environment variables apply to requests made through Node.js's default HTTP dispatcher. Requests > handled by TREK's SSRF protection use a dedicated dispatcher and do not use the environment proxy. +> **Container only.** Node ignores these variables unless it is started with `NODE_USE_ENV_PROXY=1`, and the official +> image sets that for you. On a source or Proxmox install, and on Helm where the chart's ConfigMap only passes through +> the keys it knows, set `NODE_USE_ENV_PROXY=1` alongside them or nothing will change. + +> **Set `NO_PROXY`.** Without it every request goes to the proxy, including the ones TREK makes to itself, such as the +> container health check. `localhost,127.0.0.1` is a sensible minimum; add your own hosts as needed. + --- ## HTTPS / Reverse Proxy