HTTP Proxy
This document describes how to configure Supervisely to use HTTP proxy. This is useful if your network requires all outgoing traffic to go through a proxy server.
Configuring Host and Docker to use HTTP proxy
Since there is no standard way to configure an HTTP proxy for every application, we need to make sure that both the host and Docker are configured to use the proxy.
The host configuration is usually configured via environment variables via /etc/environment
file. Here is an example:
To configure Docker client to use HTTP proxy, you need to set the variables for dockerd service.
Create a folder in the systemd folder:
Create a file /etc/systemd/system/docker.service.d/http-proxy.conf
with the following content:
Apply configuration and restart docker service:
if the method above doesn't work, or you don't use systemd, please check out the official documentation
HTTP proxy
To configure Supervisely to use HTTP proxy, you need to set the following variables in the .env
file in the sudo supervisely where
folder:
By default Supervisely Agents use the same proxy settings as the Supervisely instance. If you want to use different proxy settings you can configure them in the advanced settings of the Instructions dialog window on the Team Cluster page. Don't forget to redeploy the Agent after changing the settings.
HTTPS proxy with a custom CA certificate
In case you're using an HTTPS proxy with a custom CA certificate, you need to add the CA certificate to the trusted store on the server.
Copy the CA certificate to the following folder:
After that run the following command:
That will concatenate all certificates to /etc/ssl/certs/ca-certificates.crt
which we can then use for Supervisely.
Now we need to let Supervisely know where to find the CA certificate.
Cd to the Supervisely workdir:
Create a
docker-compose.override.yml
if it doesn't exist or merge it with the existing one:
Deploy the changes:
Supervisely Agent can be configured to use the CA certificate by editing "Agent host CA cert path" in the advanced settings. You can find advanced settings in the Instructions dialog window on the Team Cluster page. Don't forget to redeploy the Agent after changing the settings.
Last updated