Using a Proxy
Xill4 can be configured to route all network requests through a proxy. To setup Xill4 to proxy the request, you need to set the following environment variables.
Name | Required | Description |
---|---|---|
XILL4_HTTP_PROXY | ✔️ Yes | Route all HTTP network to this proxy address |
XILL4_HTTPS_PROXY | ✔️ Yes | Route all HTTPS network to this proxy address |
XILL4_NO_PROXY | ❌ No | Exclude the following globs from being proxied |
Both the HTTP and HTTPS proxy are URLs need to start with http://
.
Exclude URLs using globs
You can exclude certain requests from being proxied by using the XILL4_NO_PROXY
environment variable.
For example: XILL4_NO_PROXY='*.foo.com,baz.com'
This will not proxy any request to baz.com
or any of the subdomains of foo.com
.
Proxy Authentication
If the proxy is protected with credentials, the credentials should be added to the environment variables.
For example: XILL4_HTTP_PROXY=http://username:password@localhost:8080
Where username
and password
should be substituted with your credentials.
The proxy will use Basic-Authentication through the PROXY-AUTHORIZATION
-Header in the outgoing request.