Changes to environments, and force secure connection by default in App:before()