Only enable trust proxy and secure cookies in production