These environment variables can be used in addition to command-line options to control the behavior of Sauce Connect Proxy. To learn how to set up environment variables, see Using Environment Variables for Authentication Credentials.
When an environment variable is used, it can still be overridden by the command-line. Command-line options – when available – always take precedence.
Some command-line arguments can be passed through a config file or an environment variable. When the same argument is passed through multiple methods, the order of precedence is as follows:
- Command Line Argument
- Config File
- Environment Variable
|Environment Variable||Description||Platforms||Corresponding CLI Option|
|Sets your Sauce Labs username.||Windows, Linux, Mac OS X|
|Sets your Sauce Labs access key.||Windows, Linux, Mac OS X|
Sets an HTTP proxy to be used by Sauce Connect Proxy. It can be formatted as
On Linux and Mac environments,
|Windows, Linux, Mac OS X|
|Sets hostnames that will not be proxied, even when Sauce Connect is configured to use a proxy. Format as a comma-separated list. Subdomain wildcarding is supported when the hostname starts with a ||Linux|
|Sets advanced flags for DNS library use with Sauce Connect. For more information, see c-ares Documentation.||Windows, Linux, Mac OS X|
NOTE: Not all environment variables are supported on all platforms. For best performance, make sure that you're using the latest version of Sauce Connect Proxy.