you can use domain config settings. your domain point to some ip. if it changes ,your code config don’t need to change.