Discourse Forum Setup

From Traxel Wiki
Revision as of 03:00, 22 November 2020 by RobertBushman (talk | contribs) (Undo revision 329 by RobertBushman (talk))
Jump to navigation Jump to search
  1. Pick domain for trial (probably bobbushman.com)
    1. Correction - using experiencemaking.com since email is already set up
  2. Setup email for domain
    1. AWS Mail
      • Cheating - Experiencemaking.com is already set up. :D
    2. DNS registry setup
      • Cheating - Experiencemaking.com is already set up. :D
    3. Admin account for Let's Encrypt cert
      • created forum.admin@experiencemaking.com
  3. Create Lightsail node
    • Created a $5 node.
    • Assigned static IP: 44.238.32.225
    • opened port 443 (HTTPS) through firewall
  4. DNS registry for forum.experiencemaking.com
    • done
    • Login successful. It's alive!
  5. Apt Update
    • sudo apt update
    • sudo apt dist-upgrade -y
    • sudo reboot # if needed
  6. Install Extras
    • sudo apt install git
    • sudo apt install netcat
  7. Install Discourse
    1. https://github.com/discourse/discourse/blob/master/docs/INSTALL-cloud.md
    2. $ sudo -s
    3. $ git clone https://github.com/discourse/discourse_docker.git /var/discourse
    4. $ cd /var/discourse
    5. Going to take a stab at doing this without SPF. I've already got DKIM, and Amazon SES does ses.amazon.com SPF. We'll see. Easy enough to try again.
    6. $ ./discourse-setup
      1. Hostname  : forum.experiencemaking.com
      2. Email  : forum.admin@experiencemaking.com
      3. SMTP address  : smtp.mail.us-west-2.awsapps.com
      4. SMTP port  : 465
      5. SMTP username : discourse.admin@experiencemaking.com
      6. SMTP password : password1.no.really.I.used.password1.haha.entertainment
      7. Let's Encrypt : forum.admin@experiencemaking.com
  8. Register Admin Account
    1. Twice as entertaining
  9. Troubles with email
    1. Tried SES and Workmail endpoints, STARTTLS and SSL/TLS, 587 and 465, bob and discourse.admin, telnet confirmed connectivity, sent email using Thunderbird. No dice with Discourse.
    2. I think the next step is to set up a local SMTP server that forwards to Workmail
      1. https://docs.aws.amazon.com/ses/latest/DeveloperGuide/postfix.html#send-email-postfix
    3. https://meta.discourse.org/t/net-readtimeout-when-sending-email-after-install/56856
    4. https://meta.discourse.org/t/not-able-to-send-email-net-readtimeout/98419/15
  10. ------------------
  11. Set ports (at some point)
  12. Install Docker

Appendix: AWS SMTP Test Settings

One

DISCOURSE_SMTP_ADDRESS: email-smtp.us-west-2.amazonaws.com
DISCOURSE_SMTP_PORT: 587
DISCOURSE_SMTP_USER_NAME: bob@experiencemaking.com
DISCOURSE_SMTP_PASSWORD: "Password"
DISCOURSE_SMTP_AUTHENTICATION: "login"
DISCOURSE_SMTP_ENABLE_START_TLS: true
DISCOURSE_HOSTNAME=forum.experiencemaking.com
SMTP_ADDRESS=email-smtp.us-west-2.amazonaws.com
DEVELOPER_EMAILS=bob@experiencemaking.com
SMTP_PASSWORD=Password
SMTP_PORT=587
SMTP_USER_NAME=bob@experiencemaking.com
LETSENCRYPT_ACCOUNT_EMAIL=forum.admin@experiencemaking.com

Two