Skip to content

Commit

Permalink
Set HTTP proxy settings if they exist
Browse files Browse the repository at this point in the history
  • Loading branch information
gastaldi committed Nov 28, 2024
1 parent a3293fb commit 2cbbcaf
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,16 @@ protected void configure() {
if (port > 0) {
addFixedExposedPort(port, ARTEMIS_PORT);
}
withSystemEnv("HTTP_PROXY");
withSystemEnv("HTTPS_PROXY");
withSystemEnv("NO_PROXY");
}

private void withSystemEnv(String name) {
var value = System.getenv(name);
if (value != null) {
withEnv(name, value);
}
}

public int getPort() {
Expand Down

0 comments on commit 2cbbcaf

Please sign in to comment.