adapted for on premises

Made hard coded links to cloud and ports depending on config file