Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2017
222
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.94 KB | None | 0 0
  1. "serverURL": "http://propassional.herokuapp.com/parse"
  2.  
  3. var api = new ParseServer({
  4. databaseURI: databaseUri || 'mongodb://kevin:propassional2016@ds029745.mlab.com:29745/propassional',
  5. cloud: process.env.CLOUD_CODE_MAIN || __dirname + '/cloud/main.js',
  6. appId: process.env.APP_ID || 'myAppId',
  7. masterKey: process.env.MASTER_KEY || '', //Add your master key here. Keep it secret!
  8. fileKey: process.env.FILEKEY_PROPASSIONAL,
  9. serverURL: process.env.SERVER_URL || 'http://localhost:1337/parse', // Don't forget to change to https if needed
  10. filesAdapter: new S3Adapter(
  11.  
  12. ),
  13. // Enable email verification
  14. verifyUserEmails: true,
  15. // email verify token below expires in 2 hours (= 2 * 60 * 60 == 7200 seconds)
  16. emailVerifyTokenValidityDuration: 2 * 60 * 60,
  17. // set preventLoginWithUnverifiedEmail to false to allow user to login without verifying their email
  18. // set preventLoginWithUnverifiedEmail to true to prevent user from login if their email is not verified
  19. preventLoginWithUnverifiedEmail: false, // defaults to false
  20. // The public URL of your app.
  21. // This will appear in the link that is used to verify email addresses and reset passwords.
  22. // Set the mount path as it is in serverURL
  23. publicServerURL: 'http://propassional.herokuapp.com/parse',
  24. // Your apps name. This will appear in the subject and body of the emails that are sent.
  25. appName: 'PROPASSIONAL',
  26. // The email adapter
  27. liveQuery: {
  28. classNames: ["Posts", "Comments"] // List of classes to support for query subscriptions
  29. }
  30. });
  31. // Client-keys like the javascript key or the .NET key are not necessary with parse-server
  32. // If you wish you require them, you can set them as options in the initialization above:
  33. // javascriptKey, restAPIKey, dotNetKey, clientKey
  34.  
  35. var app = express();
  36.  
  37. // Serve static assets from the /public folder
  38. app.use('/public', express.static(path.join(__dirname, '/public')));
  39.  
  40. // Serve the Parse API on the /parse URL prefix
  41. var mountPath = process.env.PARSE_MOUNT || '/parse';
  42. app.use(mountPath, api);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement