WebProxy configuration in CMP - YAML/ENV (Workaround)
search cancel

WebProxy configuration in CMP - YAML/ENV (Workaround)

book

Article ID: 269569

calendar_today

Updated On:

Products

AppNeta

Issue/Introduction

How do I setup a web proxy for CMP without making changes to docker host?

 

Cause

Do not want to apply web proxy configuration to all docker containers on docker host

Do not have admin access to docker host

Resolution

  • Edit .env file and add a line for HTTPS_PROXY

HTTPS_PROXY=https://myproxy.example.com:3128/

  • Edit the mp-compose.yaml and add a new env var

environment:
     - APPNETA_SERVER_ADDRESS=${APPNETA_SERVER_ADDRESS}
     - APPNETA_SERVER_KEY=${APPNETA_SERVER_KEY}
     - APPNETA_SERVER_PORTS=${APPNETA_SERVER_PORTS}
     - APPNETA_CONTAINER_UUID=${APPNETA_CONTAINER_UUID}
     - APPNETA_RELAY_ADDRESSES=${APPNETA_RELAY_ADDRESSES:-}
     - HTTPS_PROXY=${HTTPS_PROXY}
     - TZ=Etc/UTC