Platform
Custom Parse Options
20 min
introduction in this guide, you will learn how to add and edit your custom parse options goal configure the parse server options prerequisites there are no pre requisites to read or edit this page parse server options 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 how to use it? 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 { "allowcustomobjectid" true } 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 https //www back4app com/docs/platform/parse web hosting 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 { "custompages" { "invalidlink" "https //\<subdomain> b4a app/invalid link html", "verifyemailsuccess" "https //\<subdomain> b4a app/verify email success html", "choosepassword" "https //\<subdomain> b4a app/choose password html", "passwordresetsuccess" "https //\<subdomain> b4a app/password reset success html", "invalidverificationlink" "https //\<subdomain> b4a app/invalid verification link html", "linksendfail" "https //\<subdomain> b4a app/link send fail html", "linksendsuccess" "https //\<subdomain> b4a app/link send success html" } } check how to create your subdomain here https //www back4app com/docs/platform/activating web hosting property sessionlength this property configures the expiration date of your sessions, in seconds (defaults to 1 year) example { "sessionlength" 31622400 } property emailverifytokenvalidityduration this property configures the email verification token validity duration, in seconds example { "emailverifytokenvalidityduration" number } property enableanonymoususers with this property, you will be able to enable (or disable) anon users, defaults to true example { "enableanonymoususers" false } 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 { "enablesingleschemacache" true } property expireinactivesessions sets whether we should expire the inactive sessions, defaults to true example { "expireinactivesessions" false } property objectidsize sets the number of characters in generated object ids, default 10 example { "objectidsize" number } 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 { "preservefilename" boolean } conclusion at this point, you have learned how to customize your parse server options