restored agent configuration (http and https)