move before routes to enabled trust proxy