Closed lucianmat closed 8 years ago
Would make sense to have a generic support in ParseServer for communication services, like mailgun, twillio,etc, based on generic configuration infrastructure parameters ?
like :
var api = new ParseServer({ databaseURI: databaseUri || 'mongodb://localhost:27017/dev', cloud: process.env.CLOUD_CODE_MAIN || __dirname + '/cloud/main.js', appId: process.env.APP_ID || 'myAppId', masterKey: process.env.MASTER_KEY || 'myMasterKey', providers : { mailGun : { service: 'mailgun', apiKey: process.env.MAILGUN_API_KEY || 'mg-MYMAILGUNKEY', domain: process.env.MAILGUN_DOMAIN || 'mymailgundomain@mailgun.org', fromAddress: process.env.MAIL_FROM_ADDRESS || 'My App <myapp@domain.com>' }, twillio : { } } });
Instead of hardcoding providers into ParseServer (index.js) ?
Looks like we're headed in that direction... will close this, please call out anything you have a problem with in a new issue. thanks. :+1:
Would make sense to have a generic support in ParseServer for communication services, like mailgun, twillio,etc, based on generic configuration infrastructure parameters ?
like :
Instead of hardcoding providers into ParseServer (index.js) ?