まず、AWS Elastic BeanstalkでParse Serverを実行しています。解析サーバーメール銃アダプタのインストール
私はreadmeファイルには、このマニュアルを参照してください
##### Email verification and password reset
Verifying user email addresses and enabling password reset via email requries an email adapter. As part of the `parse-server` package we provide an adapter for sending email through Mailgun. To use it, sign up for Mailgun, and add this to your initialization code:
```js
var server = ParseServer({
...otherOptions,
// Enable email verification
verifyUserEmails: true,
// 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: 'https://example.com/parse',
// Your apps name. This will appear in the subject and body of the emails that are sent.
appName: 'Parse App',
// The email adapter
emailAdapter: {
module: 'parse-server-simple-mailgun-adapter',
options: {
// The address that your emails come from
fromAddress: '[email protected]',
// Your domain from mailgun.com
domain: 'example.com',
// Your API key from mailgun.com
apiKey: 'key-mykey',
}
}
});
しかしこれは私のために十分に言っていません。私は既存の高速ウェブサイトを使用していないので、私はメールガンコードを追加する場所をリポジトリ内で知る必要があります。
私はすでにmailgunを持っており、これをPHPで使用しており、これを明示的に使用してユーザのパスワードをリセットしています。
私の解析サーバフォルダのどのファイルにmailgunアダプタを追加する必要がありますか? これは私のファイル構造です。私に不明な点がある場合は、私に教えてください...
これは私が今それを追加しているところです。これは正しいですか?私の郵便犯罪の信用状はまだそこにはないが、私はそれを行うことを知っている。
どこにコードを含めるのですか?それは私が本当に混乱しているすべてです。 –
私は自分の質問にコードを追加しています。 –
exampleからparse-serverを使い始めるか、parse-serverをダウンロードして解凍しましたか? –