Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- "serverURL": "http://propassional.herokuapp.com/parse"
- var api = new ParseServer({
- databaseURI: databaseUri || 'mongodb://kevin:propassional2016@ds029745.mlab.com:29745/propassional',
- cloud: process.env.CLOUD_CODE_MAIN || __dirname + '/cloud/main.js',
- appId: process.env.APP_ID || 'myAppId',
- masterKey: process.env.MASTER_KEY || '', //Add your master key here. Keep it secret!
- fileKey: process.env.FILEKEY_PROPASSIONAL,
- serverURL: process.env.SERVER_URL || 'http://localhost:1337/parse', // Don't forget to change to https if needed
- filesAdapter: new S3Adapter(
- ),
- // Enable email verification
- verifyUserEmails: true,
- // email verify token below expires in 2 hours (= 2 * 60 * 60 == 7200 seconds)
- emailVerifyTokenValidityDuration: 2 * 60 * 60,
- // set preventLoginWithUnverifiedEmail to false to allow user to login without verifying their email
- // set preventLoginWithUnverifiedEmail to true to prevent user from login if their email is not verified
- preventLoginWithUnverifiedEmail: false, // defaults to false
- // The public URL of your app.
- // This will appear in the link that is used to verify email addresses and reset passwords.
- // Set the mount path as it is in serverURL
- publicServerURL: 'http://propassional.herokuapp.com/parse',
- // Your apps name. This will appear in the subject and body of the emails that are sent.
- appName: 'PROPASSIONAL',
- // The email adapter
- liveQuery: {
- classNames: ["Posts", "Comments"] // List of classes to support for query subscriptions
- }
- });
- // Client-keys like the javascript key or the .NET key are not necessary with parse-server
- // If you wish you require them, you can set them as options in the initialization above:
- // javascriptKey, restAPIKey, dotNetKey, clientKey
- var app = express();
- // Serve static assets from the /public folder
- app.use('/public', express.static(path.join(__dirname, '/public')));
- // Serve the Parse API on the /parse URL prefix
- var mountPath = process.env.PARSE_MOUNT || '/parse';
- app.use(mountPath, api);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement