Added setting for trust proxy