Force https for production and add some additional logging