Deploying Connectware Behind a Corporate Proxy
Configure system, Docker, and Connectware proxy settings for deployment behind corporate proxies.
Last updated
Was this helpful?
Was this helpful?
uname -a
ping -c 1 your-proxy-ipsudo nano /etc/profile.d/proxy.shexport http_proxy="http://<proxy-ip>:<port>/"
export https_proxy="http://<proxy-ip>:<port>/"
export no_proxy="127.0.0.1,localhost"
export HTTP_PROXY="http://<proxy-ip>:<port>/"
export HTTPS_PROXY="http://<proxy-ip>:<port>/"
export NO_PROXY="127.0.0.1,localhost"sudo chmod +x /etc/profile.d/proxy.shenv | grep -i proxysudo nano /etc/sudoers.d/env_keep_proxyDefaults env_keep += "http_proxy https_proxy no_proxy HTTP_PROXY HTTPS_PROXY NO_PROXY"sudo nano /etc/apt/apt.conf.d/80proxyAcquire::http::proxy "http://<proxy-ip>:<port>/";
Acquire::https::proxy "http://<proxy-ip>:<port>/";
Acquire::ftp::proxy "http://<proxy-ip>:<port>/";sudo mkdir -p /etc/systemd/system/docker.service.dsudo nano /etc/systemd/system/docker.service.d/http-proxy.conf[Service]
Environment="HTTP_PROXY=http://<proxy-ip>:<port>/"
Environment="HTTPS_PROXY=http://<proxy-ip>:<port>/"
Environment="NO_PROXY=localhost,127.0.0.1"sudo systemctl daemon-reload
sudo systemctl restart dockersudo systemctl show --property=Environment dockerdocker pull hello-worldUsing default tag: latest
latest: Pulling from library/hello-world
2db29710123e: Pull complete
Digest: sha256:10d7d58d5ebd2a652f4d93fdd86da8f265f5318c6a73cc5b6a9798ff6d2b2e67
Status: Downloaded newer image for hello-world:latest
docker.io/library/hello-world:latestmkdir -p ~/.docker
nano ~/.docker/config.json{
"proxies": {
"default": {
"httpProxy": "http://<proxy-ip>:<port>/",
"httpsProxy": "http://<proxy-ip>:<port>/",
"noProxy": "127.0.0.1,localhost,admin-web-app,auth-server,broker,container-manager,connectware,ingress-controller,postgresql,protocol-mapper,service-manager,system-control-server,workbench"
}
}
}sudo nano /opt/connectware/.env# Proxy Configuration
CYBUS_PROXY=http://<proxy-ip>:<port>/
CYBUS_NO_PROXY=