Use a proxy with the uns.network CLI

Hey!

Wanted to use a proxy with the UNS CLI. It seems that the CLI uses a Node.js lib that makes it possible to set it via environment variables.

  • http_proxy
  • https_proxy

Format: http://username:password@hostname:port

See https://github.com/request/request#proxies.

It could also be integrated in the CLI (see https://github.com/request/request/issues/894#issuecomment-103857952)

1 Like

Thank you @rigwild for this hint!

Do you mean that configuring an HTTP proxy is already working in your corporate environment?

We can’t check it as we’re not using HTTP proxy to connect to Internet.

Thank you

I needed to set the environment variable manually in the console (on Windows):

set http_proxy=http://user:pass@example.com:1234
set https_proxy=http://user:pass@example.com:1234

After this, the CLI successfully uses proxy settings.

2 Likes

Here the documentation improvement: https://docs.uns.network/uns-use-the-network/cli.html#uns-network-cli-configuration

Thank you for your contribution!

1 Like