Skip to content

Commit f4cf593

Browse files
edsipercosmo0920
authored andcommitted
upstream: add new net.proxy_env_ignore variable
When HTTP_PROXY, HTTPS_PROXY or NO_PROXY are set in the environment, the upstream use those defaults for proxy needs. There are cases where we don't want certain plugins use those, this new configuration net.proxy_env_ignore disables the proxy set by environment variables and can be used inside the plugins that relies in the upstream interface. Signed-off-by: Eduardo Silva <[email protected]>
1 parent 2470b2c commit f4cf593

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/flb_upstream.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,12 @@ struct flb_config_map upstream_net[] = {
136136
"Set the maximum number of active TCP connections that can be used per worker thread."
137137
},
138138

139+
{
140+
FLB_CONFIG_MAP_BOOL, "net.proxy_env_ignore", "FALSE",
141+
0, FLB_TRUE, offsetof(struct flb_net_setup, proxy_env_ignore),
142+
"Ignore the environment variables HTTP_PROXY, HTTPS_PROXY and NO_PROXY when "
143+
},
144+
139145
/* EOF */
140146
{0}
141147
};

0 commit comments

Comments
 (0)