diff --git a/lib/utils.js b/lib/utils.js index 21f0f7a9..abb9f50a 100644 --- a/lib/utils.js +++ b/lib/utils.js @@ -414,6 +414,11 @@ function commonHttpClientOpts(clientOpts, req) { clientOpts.proxy = app.config.httpProxy || false; } + // noProxy + if (clientOpts.noProxy === undefined) { + clientOpts.noProxy = app.config.noProxy; + } + // headers.request-id if (req && req.getId()) { var req_id = (clientOpts.headers diff --git a/sapi_manifests/imgapi/template b/sapi_manifests/imgapi/template index d720b388..7d6b8afc 100644 --- a/sapi_manifests/imgapi/template +++ b/sapi_manifests/imgapi/template @@ -60,6 +60,7 @@ }, "httpProxy": "{{{http_proxy}}}", + "noProxy": "{{{no_proxy}}}", "dockerRegistryInsecure": {{^docker_registry_insecure}}false{{/docker_registry_insecure}}{{#docker_registry_insecure}}{{{docker_registry_insecure}}}{{/docker_registry_insecure}}, "// imgapi-manta-setup": "The following vars used by 'imgapi-*-manta-setup'.",