diff --git a/ccp/modules/dnpm-compose.yml b/ccp/modules/dnpm-compose.yml index a4ab611..ebef1cd 100644 --- a/ccp/modules/dnpm-compose.yml +++ b/ccp/modules/dnpm-compose.yml @@ -16,7 +16,7 @@ services: LOCAL_TARGETS_FILE: "./conf/connect_targets.json" HTTP_PROXY: "http://forward_proxy:3128" HTTPS_PROXY: "http://forward_proxy:3128" - NO_PROXY: beam-proxy,dnpm-backend,host.docker.internal + NO_PROXY: beam-proxy,dnpm-backend,host.docker.internal${DNPM_ADDITIONAL_NO_PROXY} RUST_LOG: ${RUST_LOG:-info} NO_AUTH: "true" extra_hosts: diff --git a/ccp/modules/dnpm-setup.sh b/ccp/modules/dnpm-setup.sh index 76c378a..21d356c 100644 --- a/ccp/modules/dnpm-setup.sh +++ b/ccp/modules/dnpm-setup.sh @@ -6,4 +6,10 @@ if [ -n "${ENABLE_DNPM}" ]; then # Set variables required for Beam-Connect DNPM_BEAM_SECRET_SHORT="$(cat /proc/sys/kernel/random/uuid | sed 's/[-]//g' | head -c 20)" + # If the DNPM_NO_PROXY variable is set, prefix it with a comma (as it gets added to a comma separated list) + if [ -n "${DNPM_NO_PROXY}" ]; then + DNPM_ADDITIONAL_NO_PROXY=",${DNPM_NO_PROXY}" + else + DNPM_ADDITIONAL_NO_PROXY="" + fi fi diff --git a/minimal/modules/dnpm-compose.yml b/minimal/modules/dnpm-compose.yml index 083dd58..7acd650 100644 --- a/minimal/modules/dnpm-compose.yml +++ b/minimal/modules/dnpm-compose.yml @@ -32,7 +32,7 @@ services: LOCAL_TARGETS_FILE: "./conf/connect_targets.json" HTTP_PROXY: http://forward_proxy:3128 HTTPS_PROXY: http://forward_proxy:3128 - NO_PROXY: dnpm-beam-proxy,dnpm-backend, host.docker.internal + NO_PROXY: dnpm-beam-proxy,dnpm-backend, host.docker.internal${DNPM_ADDITIONAL_NO_PROXY} RUST_LOG: ${RUST_LOG:-info} NO_AUTH: "true" extra_hosts: diff --git a/minimal/modules/dnpm-setup.sh b/minimal/modules/dnpm-setup.sh index 6de19b8..98d55f1 100644 --- a/minimal/modules/dnpm-setup.sh +++ b/minimal/modules/dnpm-setup.sh @@ -13,4 +13,10 @@ if [ -n "${ENABLE_DNPM}" ]; then log DEBUG "No Broker for clock check set; using $DNPM_BROKER_URL" fi DNPM_PROXY_ID="${SITE_ID}.${DNPM_BROKER_ID}" + # If the DNPM_NO_PROXY variable is set, prefix it with a comma (as it gets added to a comma separated list) + if [ -n "${DNPM_NO_PROXY}" ]; then + DNPM_ADDITIONAL_NO_PROXY=",${DNPM_NO_PROXY}" + else + DNPM_ADDITIONAL_NO_PROXY="" + fi fi