configure target host via global var in app.js