sls-packaging icon indicating copy to clipboard operation
sls-packaging copied to clipboard

Translate http_proxy and https_proxy environment variables into jvm flags

Open leeavital opened this issue 8 years ago • 3 comments

Occasionally we'll set http_proxy environment variables, which are not respected by the JVM.

Usually I'll manually set -DhttpProxy.hostname and -DhttpProxy.port manually, but it would be nice if the init.sh script could support this.

leeavital avatar Mar 10 '17 00:03 leeavital

An alternative is to call System.setProperty() upon startup when those environment variables are set. It's not immediately clear which is preferable.

leeavital avatar Mar 10 '17 00:03 leeavital

Does the launcher config not suffice for this?

uschi2000 avatar Mar 10 '17 02:03 uschi2000

I'm working around it by hardcoding the proxy values in the launcher-config, but this is something I'll have to repeat every time I add a service.

leeavital avatar Mar 10 '17 14:03 leeavital