HTTP Proxy
Last updated
Was this helpful?
Last updated
Was this helpful?
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.
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:
To configure Supervisely to use HTTP proxy, you need to set the following variables in the .env
file in the sudo supervisely where
folder:
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: