Deploying Connectware Behind a Corporate Proxy
Configure system, Docker, and Connectware proxy settings for deployment behind corporate proxies.
Deploying Connectware in environments where Internet access is controlled via a corporate proxy requires additional configuration. This guide outlines the steps necessary to install and run Connectware in such environments, covering system, Docker, and application-level proxy settings.
Prerequisites
To follow this guide, you will need the following:
A valid Connectware license.
Docker and Docker Compose installed on your system.
Proxy Behavior Across Applications
Proxy configuration across applications can vary:
Some tools recognize
http_proxy,https_proxy, andno_proxy(lowercase).Others may use
HTTP_PROXY,HTTPS_PROXY, andNO_PROXY(uppercase).Some software may require both or use custom proxy settings.
General recommendations:
Set both lowercase and uppercase variants of proxy variables.
Avoid IP addresses unless known to be used directly by the application.
Hostname resolution may fail under proxy settings unless explicitly configured.
Configuration
Verifying Host and Proxy Server Reachability
To confirm connectivity:
Expected output should confirm that the proxy server is reachable with minimal latency and no packet loss.
System-Wide Proxy Configuration
To apply proxy settings system-wide:
Create a script that will contain your proxy settings. The
/etc/profile.d directorycontains shell scripts that are likely to be executed at launch of your shell.
Make the script executable:
Restart the shell or re-login to apply. You can verify with the following:
Preserving Proxy Settings for Sudo
To retain proxy variables for commands executed with sudo:
Edit your configuration for sudo.
Add the following:
APT Proxy Configuration
For Debian-based systems, APT requires its own proxy settings. This is not required for running Connectware. However, without it you are not able to install any software using APT.
This allows software installation via APT behind the proxy.
Docker Daemon Proxy Setup
The Docker daemon requires proxy configuration to pull images from the Internet:
Create the drop-in directory:
Create the config file:
Add the following:
Apply the changes and restart:
Verify the configuration:
Test Docker image pull:
The result should look like this:
Container-Level Internet Access
Internet access from within containers can be configured globally or per container.
To define global proxy settings for all containers:
Example
This ensures Connectware containers can communicate with each other without proxy interference.
Configuring the Connectware Environment File
Before launching Connectware, set the proxy in the environment configuration file. By default, the environment file is located in your installation directory.
Add the following:
Make sure the .env file is located in the correct installation directory to take effect.
Last updated
Was this helpful?

