Move https code to AppController