Parameterize and unify URL and port configurations.