Skip to content

Commit

Permalink
Merge pull request #327 from sematext/SC-17171_proxy_settings_is_ignored
Browse files Browse the repository at this point in the history
SC 17171 proxy settings is ignored
  • Loading branch information
regiluze authored Sep 26, 2023
2 parents a437b74 + 1709c9a commit 24b95f7
Show file tree
Hide file tree
Showing 3 changed files with 2,852 additions and 1,731 deletions.
7 changes: 6 additions & 1 deletion lib/core/cliArgs.js
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,12 @@ module.exports = (function () {
}
// overwrite env var from CLI for logsene-js
process.LOGSENE_MAX_MESSAGE_FIELD_SIZE = argv.maxLogSize

if (process.env.HTTP_PROXY !== undefined) {
argv.httpProxy = process.env.HTTP_PROXY
}
if (process.env.HTTPS_PROXY !== undefined) {
argv.httpsProxy = process.env.HTTPS_PROXY
}
if (process.env.GEOIP_ENABLED === 'true' && argv.geoipField === undefined) {
argv.geoipEnabled = true
}
Expand Down
Loading

0 comments on commit 24b95f7

Please sign in to comment.