symphony-java-sample-bots
symphony-java-sample-bots copied to clipboard
Startup scripts don't support proxies
To facilitate onboarding of new Symphony pod developers working in HTTP proxy environments (i.e. most firms), the env.sh script should include options for setting:
PROXY_HOSTPROXY_PORTPROXY_USERNAMEPROXY_PASSWORD
The enhanced run-bot.sh script (see issue #17) should then include these options in the JVM's startup command line (i.e. via -Dhttp.proxyHost=${PROXY_HOST} -Dhttp.proxyPort=${PROXY_PORT} -Dhttp.proxyUser=${PROXY_USERNAME} -Dhttp.proxyPassword=${PROXY_PASSWORD}).
Thanks for raising this @pmonks . I've followed SJC docs and added a proxy.url item in symphony.properties config file; the README explains how to set it up.
It works as expected, however, I didn't see any mention to port, username or password configuration.
Code is in this block of Utils.java, if you want to review.