You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
'The trust proxy settings. It is important to understand the exact setup of the reverse proxy, since this setting will trust values provided in the Parse Server API request. See the <a href="https://expressjs.com/en/guide/behind-proxies.html">express trust proxy settings</a> documentation. Defaults to `false`.',
* @property {Boolean} startLiveQueryServer Starts the liveQuery server
92
+
* @property {Any} trustProxy The trust proxy settings. It is important to understand the exact setup of the reverse proxy, since this setting will trust values provided in the Parse Server API request. See the <a href="https://expressjs.com/en/guide/behind-proxies.html">express trust proxy settings</a> documentation. Defaults to `false`.
92
93
* @property {String[]} userSensitiveFields Personally identifiable information fields in the user table the should be removed for non-authorized users. Deprecated @see protectedFields
93
94
* @property {Boolean} verbose Set the logging to verbose
94
95
* @property {Boolean} verifyUserEmails Set to `true` to require users to verify their email address to complete the sign-up process.<br><br>Default is `false`.
/* middleware for express server, can be string or function */
243
243
middleware: ?((()=>void)|string);
244
+
/* The trust proxy settings. It is important to understand the exact setup of the reverse proxy, since this setting will trust values provided in the Parse Server API request. See the <a href="https://expressjs.com/en/guide/behind-proxies.html">express trust proxy settings</a> documentation. Defaults to `false`.
245
+
:DEFAULT: false */
246
+
trustProxy: ?any;
244
247
/* Starts the liveQuery server */
245
248
startLiveQueryServer: ?boolean;
246
249
/* Live query server configuration options (will start the liveQuery server) */
Copy file name to clipboardExpand all lines: src/cloud-code/Parse.Cloud.js
+1-1
Original file line number
Diff line number
Diff line change
@@ -722,7 +722,7 @@ module.exports = ParseCloud;
722
722
* @property {Boolean} isChallenge If true, means the current request is originally triggered by an auth challenge.
723
723
* @property {Parse.User} user If set, the user that made the request.
724
724
* @property {Parse.Object} object The object triggering the hook.
725
-
* @property {String} ip The IP address of the client making the request.
725
+
* @property {String} ip The IP address of the client making the request. To ensure retrieving the correct IP address, set the Parse Server option `trustProxy: true` if Parse Server runs behind a proxy server, for example behind a load balancer.
726
726
* @property {Object} headers The original HTTP headers for the request.
727
727
* @property {String} triggerName The name of the trigger (`beforeSave`, `afterSave`, ...)
728
728
* @property {Object} log The current logger inside Parse Server.
0 commit comments