New middleware to set site params