Update configs depends on enviroment variables.