use environmental variables for api host