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
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+11
Original file line number
Diff line number
Diff line change
@@ -70,6 +70,17 @@ If your pull request introduces a change that may affect the storage or retrieva
70
70
-`it_only_db('mongo')` // will make a test that only runs on mongo
71
71
-`it_exclude_dbs(['postgres'])` // will make a test that runs against all DB's but postgres
72
72
73
+
### Generate Parse Server Config Definition
74
+
75
+
If you want to make changes to [Parse Server Configuration][config] add the desired configuration to [src/Options/index.js][config-index] and run `npm run definitions`. This will output [src/Options/Definitions.js][config-def] and [src/Options/docs.js][config-docs].
76
+
77
+
To view docs run `npm run docs` and check the `/out` directory.
78
+
73
79
### Code of Conduct
74
80
75
81
This project adheres to the [Contributor Covenant Code of Conduct](https://github.com/parse-community/parse-server/blob/master/CODE_OF_CONDUCT.md). By participating, you are expected to honor this code.
Copy file name to clipboardExpand all lines: README.md
+4-27
Original file line number
Diff line number
Diff line change
@@ -189,7 +189,7 @@ app.listen(1337, function() {
189
189
});
190
190
```
191
191
192
-
For a full list of available options, run `parse-server --help`.
192
+
For a full list of available options, run `parse-server --help` or take a look at [Parse Server Configurations](http://parseplatform.org/parse-server/api/master/ParseServerOptions.html).
193
193
194
194
## Logging
195
195
@@ -209,13 +209,13 @@ Logs are also be viewable in Parse Dashboard.
209
209
210
210
# Documentation
211
211
212
-
The full documentation for Parse Server is available in the [wiki](https://github.com/parse-community/parse-server/wiki). The [Parse Server guide](http://docs.parseplatform.org/parse-server/guide/) is a good place to get started. If you're interested in developing for Parse Server, the [Development guide](http://docs.parseplatform.org/parse-server/guide/#development-guide) will help you get set up.
212
+
The full documentation for Parse Server is available in the [wiki](https://github.com/parse-community/parse-server/wiki). The [Parse Server guide](http://docs.parseplatform.org/parse-server/guide/) is a good place to get started. An [API reference](http://parseplatform.org/parse-server/api/) is also available. If you're interested in developing for Parse Server, the [Development guide](http://docs.parseplatform.org/parse-server/guide/#development-guide) will help you get set up.
213
213
214
214
## Configuration
215
215
216
216
Parse Server can be configured using the following options. You may pass these as parameters when running a standalone `parse-server`, or by loading a configuration file in JSON format using `parse-server path/to/configuration.json`. If you're using Parse Server on Express, you may also pass these to the `ParseServer` object as options.
217
217
218
-
For the full list of available options, run `parse-server --help`.
218
+
For the full list of available options, run `parse-server --help` or take a look at [Parse Server Configurations](http://parseplatform.org/parse-server/api/master/ParseServerOptions.html).
219
219
220
220
#### Basic options
221
221
@@ -238,29 +238,6 @@ The client keys used with Parse are no longer necessary with Parse Server. If yo
238
238
239
239
#### Advanced options
240
240
241
-
*`fileKey` - For migrated apps, this is necessary to provide access to files already hosted on Parse.
242
-
*`preserveFileName` - Set to true to remove the unique hash added to the file names. Defaults to false.
243
-
*`allowClientClassCreation` - Set to false to disable client class creation. Defaults to true.
244
-
*`enableAnonymousUsers` - Set to false to disable anonymous users. Defaults to true.
245
-
*`auth` - Used to configure support for [3rd party authentication](http://docs.parseplatform.org/parse-server/guide/#oauth-and-3rd-party-authentication).
246
-
*`facebookAppIds` - An array of valid Facebook application IDs that users may authenticate with.
247
-
*`mountPath` - Mount path for the server. Defaults to `/parse`.
248
-
*`directAccess` - Replace HTTP Interface when using JS SDK in current node runtime. Defaults to false. Caution, this is an experimental feature that may not be appropriate for production.
249
-
*`filesAdapter` - The default behavior (GridStore) can be changed by creating an adapter class (see [`FilesAdapter.js`](https://github.com/parse-community/parse-server/blob/master/src/Adapters/Files/FilesAdapter.js)).
250
-
*`maxUploadSize` - Max file size for uploads. Defaults to 20 MB.
251
-
*`loggerAdapter` - The default behavior/transport (File) can be changed by creating an adapter class (see [`LoggerAdapter.js`](https://github.com/parse-community/parse-server/blob/master/src/Adapters/Logger/LoggerAdapter.js)).
252
-
*`logLevel` - Set the specific level you want to log. Defaults to `info`. The default logger uses the npm log levels as defined by the underlying winston logger. Check [Winston logging levels](https://github.com/winstonjs/winston#logging-levels) for details on values to specify.
253
-
*`sessionLength` - The length of time in seconds that a session should be valid for. Defaults to 31536000 seconds (1 year).
254
-
*`maxLimit` - The maximum value supported for the limit option on queries. Defaults to unlimited.
255
-
*`revokeSessionOnPasswordReset` - When a user changes their password, either through the reset password email or while logged in, all sessions are revoked if this is true. Set to false if you don't want to revoke sessions.
256
-
*`accountLockout` - Lock account when a malicious user is attempting to determine an account password by trial and error.
257
-
*`passwordPolicy` - Optional password policy rules to enforce.
258
-
*`customPages` - A hash with urls to override email verification links, password reset links and specify frame url for masking user-facing pages. Available keys: `parseFrameURL`, `invalidLink`, `choosePassword`, `passwordResetSuccess`, `verifyEmailSuccess`.
259
-
*`middleware` - (CLI only), a module name, function that is an express middleware. When using the CLI, the express app will load it just **before** mounting parse-server on the mount path. This option is useful for injecting a monitoring middleware.
260
-
*`masterKeyIps` - The array of ip addresses where masterKey usage will be restricted to only these ips. (Default to [] which means allow all ips). If you're using this feature and have `useMasterKey: true` in cloudcode, make sure that you put your own ip in this list.
261
-
*`readOnlyMasterKey` - A masterKey that has full read access to the data, but no write access. This key should be treated the same way as your masterKey, keeping it private.
262
-
*`objectIdSize` - The string length of the newly generated object's ids.
263
-
264
241
##### Logging
265
242
266
243
Use the `PARSE_SERVER_LOGS_FOLDER` environment variable when starting `parse-server` to save your server logfiles to the specified folder.
@@ -369,7 +346,7 @@ The default port is 1337, to use a different port set the PORT environment varia
For the full list of configurable environment variables, run `parse-server --help`.
349
+
For the full list of configurable environment variables, run `parse-server --help` or take a look at [Parse Server Configuration](https://github.com/parse-community/parse-server/blob/master/src/Options/Definitions.js).
0 commit comments