Proxy configuration

Proxy configuration using systemd

If the server on which you have installed Diffblue requires a proxy server to access files on the internet, you can configure it.

  1. Edit the diffblue service:

     sudo systemctl edit diffblue
    

    and add your proxy configuration as environment variables:

     [Service]
     Environment="http_proxy=USERNAME:PASSWORD@PROXYSERVER:PROXYPORT"
     Environment="https_proxy=USERNAME:PASSWORD@PROXYSERVER:PROXYPORT"
    
  2. Reload systemd to apply your change in configuration:

     sudo systemctl daemon-reload
    
  3. Verify your settings:

     systemctl show --property=Environment diffblue
    
  4. Restart the diffblue service so it can use the new proxy settings:

     sudo systemctl restart diffblue
    

Proxy configuration using Docker Compose

Alternatively you can update the /opt/diffblue/docker-compose.custom.yml file to add proxy configuration. The following example shows how to add a proxy server to all relevant platform components.

version: '2.2'
services:
  application-server:
    environment:
      http_proxy: USERNAME:PASSWORD@PROXYSERVER:PROXYPORT
      https_proxy: USERNAME:PASSWORD@PROXYSERVER:PROXYPORT
  deeptest-worker:
    environment:
      http_proxy: USERNAME:PASSWORD@PROXYSERVER:PROXYPORT
      https_proxy: USERNAME:PASSWORD@PROXYSERVER:PROXYPORT
  front-end:
    environment:
      http_proxy: USERNAME:PASSWORD@PROXYSERVER:PROXYPORT
      https_proxy: USERNAME:PASSWORD@PROXYSERVER:PROXYPORT
  mongo:
    environment:
      http_proxy: USERNAME:PASSWORD@PROXYSERVER:PROXYPORT
      https_proxy: USERNAME:PASSWORD@PROXYSERVER:PROXYPORT
  storage:
    environment:
      http_proxy: USERNAME:PASSWORD@PROXYSERVER:PROXYPORT
      https_proxy: USERNAME:PASSWORD@PROXYSERVER:PROXYPORT

Restart the diffblue service:

sudo systemctl restart diffblue

results matching ""

    No results matching ""