ref(router): perform SSL redirect and health check before anything else