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:

Proxy Behavior Across Applications

Proxy configuration across applications can vary:

  • Some tools recognize http_proxy, https_proxy, and no_proxy (lowercase).

  • Others may use HTTP_PROXY, HTTPS_PROXY, and NO_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:

  1. Create a script that will contain your proxy settings. The /etc/profile.d directory contains shell scripts that are likely to be executed at launch of your shell.

  1. Make the script executable:

  1. 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:

  1. Edit your configuration for sudo.

  1. 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:

  1. Create the drop-in directory:

  1. Create the config file:

  1. Add the following:

  1. Apply the changes and restart:

  1. Verify the configuration:

  1. 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

  1. Before launching Connectware, set the proxy in the environment configuration file. By default, the environment file is located in your installation directory.

  1. Add the following:

Make sure the .env file is located in the correct installation directory to take effect.

Last updated

Was this helpful?