[agent] add options for ssl and proxy