add proxy options to ES_JAVA_OPTS when defined with es_proxy_host

This commit is contained in:
Julien Mailleret 2019-12-18 11:57:02 +01:00
parent ac8548503a
commit f1b79129f1
No known key found for this signature in database
GPG key ID: F065093271C8DE71
2 changed files with 1 additions and 2 deletions

View file

@ -15,7 +15,7 @@ ES_PATH_CONF={{ es_conf_dir }}
PID_DIR={{ es_pid_dir }}
# Additional Java OPTS
ES_JAVA_OPTS=
ES_JAVA_OPTS="{% if es_proxy_host is defined and es_proxy_host != '' %}-Dhttp.proxyHost={{ es_proxy_host }} -Dhttp.proxyPort={{ es_proxy_port }} -Dhttps.proxyHost={{ es_proxy_host }} -Dhttps.proxyPort={{ es_proxy_port }}{% endif %}"
# Configure restart on package upgrade (true, every other setting will lead to not restarting)
#RESTART_ON_UPGRADE=true