Increased middleware timeout to 10s and added config.
Added timeout handler after passport.