Custom Parse Options
In this guide, you will learn how to add and edit your Custom Parse Options.
- Configure the Parse Server Options.
There are no pre-requisites to read or edit this page.
When you create a new application at Back4App, we will create all your application backend structure and it builds your database structure, your application layer, and your APIs. We do it all, thinking about scalability and security.
While your app is being created, a file called config.json will be generated with the options that contain the configuration like keys to starting the app in the JSON format.
This block looks like this:
Now, we will show you some examples of properties that can be easily changed at this section.
Note that this is a DANGER ZONE. Your app can stop working if you do something wrong. If you are not sure, ask for support.
Please, check the following topics about how to use each property below:
Property: allowCustomObjectId
Enable (or disable) custom objectId.
Property: customPages
With this property, you will be able to add custom pages for password validation and reset.
1 - Enable your Webhosting
The first step that you need to take is to enable your web hosting following this guide.
2 - Upload the HTML files
At this step, You only need to deploy these static HTML pages in your “public” folder on cloud code. Please, download the following templates to edit them:
Before uploading these files, please make sure that your file name doesn’t have spaces.
3 - Configuring the custom pages
The configuration will look like something below:
Example:
Check how to create your subdomain here
Property: sessionLength
This property configures the expiration date of your sessions, in seconds (defaults to 1 year).
Example:
Property: emailVerifyTokenValidityDuration
This property configures the email verification token validity duration, in seconds.
Example:
Property: enableAnonymousUsers
With this property, you will be able to enable (or disable) anon users, defaults to true.
Example:
Property: enableSingleSchemaCache
Use a single schema cache shared across requests. Reduces the number of queries made to _SCHEMA, defaults to false, i.e. unique schema cache per request.
Example:
Property: expireInactiveSessions
Sets whether we should expire the inactive sessions, defaults to true.
Example:
Property: objectIdSize
Sets the number of characters in generated object IDs, default 10.
Example:
Property: preserveFileName
Enable (or disable) the addition of a unique hash to the file names.
Note that it is recommended to keep it as false to prevent errors while trying to delete the unused files!
Example:
At this point, you have learned how to customize your Parse Server Options.