Skip to content

Commit

Permalink
fix: overide http and https proxies cli parameters from environment v…
Browse files Browse the repository at this point in the history
…ariables
  • Loading branch information
regiluze committed Sep 25, 2023
1 parent a437b74 commit b379a14
Showing 1 changed file with 6 additions and 1 deletion.
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

0 comments on commit b379a14

Please # to comment.