Correctly configure various settings for production/local