يبدو أن بعض الأسطر مفقودة من app.yml إذا غيرت رأيك بعد الإعداد وأردت استخدام البريد الإلكتروني في النهاية.
لست مطلعًا جدًا على كيفية تغير الأمور منذ Self-Hosting Discourse Just Got a Whole Lot Easier ولكن في مواقعي، لم تتغير طريقة تكوين تفاصيل SMTP في app.yml. لو كنت مكانك، سأحاول تشغيل
cd /var/discourse
./discourse-doctor
وأرى ما إذا كان ذلك سيسمح لك بإصلاحه. إذا لم ينجح ذلك، فسأبحث عن ملف app.yml من موقع يعمل واستخدمه كمثال للتأكد من أن الأسطر المطلوبة للبريد الإلكتروني موجودة وصحيحة. إذا لم يكن لديك ذلك، فيمكنك الحصول على مثال هنا:
## this is the all-in-one, standalone Discourse Docker container template
##
## After making changes to this file, you MUST rebuild
## /var/discourse/launcher rebuild app
##
## BE *VERY* CAREFUL WHEN EDITING!
## YAML FILES ARE SUPER SUPER SENSITIVE TO MISTAKES IN WHITESPACE OR ALIGNMENT!
## visit http://www.yamllint.com/ to validate this file as needed
templates:
- "templates/postgres.template.yml"
- "templates/redis.template.yml"
- "templates/web.template.yml"
- "templates/web.ratelimited.template.yml"
## Uncomment these two lines if you wish to add Lets Encrypt (https)
#- "templates/web.ssl.template.yml"
#- "templates/web.letsencrypt.ssl.template.yml"
## which TCP/IP ports should this container expose?
## If you want Discourse to share a port with another webserver like Apache or nginx,
This file has been truncated. show original
ثم أعد البناء.
إذا كان كل هذا يبدو صعبًا، وإذا لم يكن الوقت قد فات، يمكنك أيضًا البدء من جديد والإجابة على الأسئلة بشكل صحيح باستخدام تفاصيل SMTP الخاصة بك منذ البداية.