Skip to content
Snippets Groups Projects
Commit 82bb4642 authored by Mirco Nasuti's avatar Mirco Nasuti
Browse files

add parameters to use an HTTP(S) proxy

parent dc3c711e
No related branches found
No related tags found
No related merge requests found
......@@ -63,3 +63,10 @@ To use this image, you need a running instance of PostgreSQL and to configure th
* CONTEXT_PATH: context path appended to all services running in this container. Default to "/services".
* SESSION_TIMEOUT: Timeout in milliseconds for session expiration. Default to 2592000.
### PROXY
* HTTP_PROXY_HOST: HTTP proxy host
* HTTP_PROXY_PORT: HTTP proxy port
* HTTPS_PROXY_HOST: HTTPS proxy host
* HTTPS_PROXY_PORT: HTTPS proxy port
......@@ -10,4 +10,16 @@ fi
if [ ! -z "$FEATURES_DB_SERVER" ]; then
OPTS="$OPTS -wait tcp://$FEATURES_DB_SERVER -timeout 60s"
fi
if [ ! -z "$HTTP_PROXY_HOST" ]; then
JAVA_OPTIONS="$JAVA_OPTIONS -Dhttp.proxyHost=$HTTP_PROXY_HOST"
fi
if [ ! -z "$HTTP_PROXY_PORT" ]; then
JAVA_OPTIONS="$JAVA_OPTIONS -Dhttp.proxyPort=$HTTP_PROXY_PORT"
fi
if [ ! -z "$HTTPS_PROXY_HOST" ]; then
JAVA_OPTIONS="$JAVA_OPTIONS -Dhttps.proxyHost=$HTTPS_PROXY_HOST"
fi
if [ ! -z "$HTTPS_PROXY_PORT" ]; then
JAVA_OPTIONS="$JAVA_OPTIONS -Dhttps.proxyPort=$HTTPS_PROXY_PORT"
fi
dockerize $OPTS java ${JAVA_OPTIONS} -jar /usr/share/jars/portal-backend.jar
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment