Single proxy
A single proxy is used for all outgoing HTTP/HTTPS connections to the internet. Requirements- Proxy address/port
- Network access from Anaconda Server to the proxy server
- Ensuring proper name resolution (if needed)
-
Open your
docker-compose.ymlfile. -
Add the
HTTP_PROXYand/orHTTPS_PROXYas well as theNO_PROXYenvironment variables to therepo_workerandrepo_apicontainers. For example: -
Restart the containers by running the following command:
Multiple proxies (or users) for mirror jobs
When mirroring through different proxies—whether this is because you’re using a different proxy server or an entirely different user is mirroring—you must apply the correct settings to each respective mirror. Requirements The requirements for multiple proxies are the same as the requirements for single proxies; however, you must modify the settings for each respective proxy. For example, the proxy URI two users could be named the following:All updates to the mirror must go through the CLI/PAI, not through the GUI (the proxy setting will be removed if you update from the GUI).
conda repo mirror in the cli, or /channel/mirrors via the REST API. This will
allow you to specify the proxy address to be used for the specific mirror.
The following example shows multiple mirrors with different proxy users. It assumes a proxy is available at http://proxy:8899 with basic auth.
If you are using a terminating SSL proxy, see the Terminating SSL proxy section.
@another.proxy.server instead of @proxy.
Terminating SSL Proxy
For a proxy server that terminates the SSL connection, you’ll typically need to distribute the root ca certificate used by the proxy to TE so it can verify the certs. Requirements- Same requirements as those for single proxies
- The ca cert from the proxy server
- All certs for proxies (if multiple proxies are used)
repo_api and repo_worker containers.
Certs are stored in /conda/ssl/cacert.pem.
Use the following bash function to update existing containers with the root CA for the proxy:

