In regards to Settings you can either refer to environment variables inside your Settings.yaml and therefore “inject” the respective information on the server via environment. Alternatively and usually a bit easier is to use sub contexts
Production/Live Production/Staging Production/Testing
for example and configure for each of those context respectively. Then on the three servers you use the matching one as context instead of Production.