From a06293e2e9833cbcf493061de25c7e3af52831c4 Mon Sep 17 00:00:00 2001 From: John Gee Date: Wed, 7 Feb 2024 13:54:45 +1300 Subject: [PATCH] Add sudo tip to proxy docs --- docs/proxy-server.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/proxy-server.md b/docs/proxy-server.md index e02dafa..40702ad 100644 --- a/docs/proxy-server.md +++ b/docs/proxy-server.md @@ -14,6 +14,10 @@ If your proxy requires authentication you can add the [url-encoded](https://urle If you have defined a custom node mirror which uses http, then you would define `http_proxy` rather than `https_proxy`. +If you use `sudo` to run `n`, you need to do something extra to make the environment variables available. A simple way is to use `-E` (`--preserve-env`): + + sudo -E n lts + ## Certificate Checks Your proxy server may supply its own ssl certificates for remote sites (as a man-in-the-middle). If you can not arrange to trust the proxy in this role, you can turn off (all) certificate checking with `--insecure`. e.g.