为本地托管的解析服务器启用重置密码和电子邮件验证

atu*_*mar 8 parse-server

我正在尝试为我本地安装的parse-server-example启用重置密码和电子邮件验证.我可以看到我们有https://github.com/parse-server-modules/parse-mailgun.

但我不清楚如何在parse-server-example中使用parse-mailgun,我完全迷失了它.有人可以解释或建议启用它的步骤吗?

问候Atul

atu*_*mar 12

  1. 使用MailGun创建帐户,并从其网站获取apiKey和域.

  2. 在本地系统的parse-server-example git文件夹的index.js文件下复制并粘贴以下配置.您可以直接在parse-server-example文件夹下获取此文件.


verifyUserEmails: true,
publicServerURL: 'https://yourproject.herokuapp.com/parse',
appName: 'Parse App',
emailAdapter: { 
    module: 'parse-server-simple-mailgun-adapter',
    options: { 
               fromAddress: 'parse@example.com',
               domain: '<domainProvidedFromMailGun>.mailgun.org', 
               apiKey: 'key-FromMailGun', 
             }
 },
Run Code Online (Sandbox Code Playgroud)

将它推送到heroku app git,因为我已将我的解析服务器导航到heroku,所以cmd以下是有效的.

git add .
git commit -m "mypush commit"
heroku git:remote -a fast-springs-29785
git push heroku master
Run Code Online (Sandbox Code Playgroud)