Middleware to force SSL on pages