Note: Passphrases removed.
20220116..discourse_test
.20220116..static_ip_1
at 35.80.240.35
and attached it to
the lightsail instance.HTTPS
service by opening port 443 to TCP traffic from any IPv4 address.reboil.com
subdomain:Install git netcat
Install Docker
Reference: Link
# apt install ca-certificates curl gnupg lsb-release
Add Docker GPG key:
# curl -fsSL https://download.docker.com/linux/debian/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
Install Docker Engine:
Run:
# apt update
# apt install docker-ce docker-ce-cli containerd.io
TXT
record (at freedns.afraid.org
):
TXT
mg
reboil.com
"v=spf1 include:mailgun.org ~all"
TXT
record (at freedns.afraid.org
):
TXT
krs._domainkey.mg
reboil.com
"k=rsa; p=xxxx"
CNAME
record (at freedns.afraid.org
):
CNAME
email.mg
reboil.com
mailgun.org
.MX
record
MX
mg
reboil.com
10:mxa.mailgun.org
MX
record
MX
mg
reboil.com
10:mxb.mailgun.org
TXT
records are required for SPF
and DKIM
. Maingun
says: "TXT records (known as SPF & DKIM) are required to send and
receive email with Mailgun." SPF and DKIM are required by the
Discourse install guide which says "To ensure mail deliverability,
you must add valid SPF and DKIM records in your DNS".MX
records are required for receiving emails.Note: The CNAME
record is required for tracking opens, clicks, and
unsubscribes.
Receive following SMTP credentials:
SMTP hostname: smtp.mailgun.org Port: 587 (recommended) Username: postmaster@mg.reboil.com Default password: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx-xxxxxxxx-xxxxxxxx
Reference: Link (note: this step should not be necessary, apparently with a new Discourse install as of 2020-11.
As root and with /var/discourse
as the working directory, run ./discourse-setup
Hostname for your Discourse? [discourse.example.com]: forum.reboil.com
Email address for admin account(s)? [me@example.com,you@example.com]: baltakatei@gmail.com
SMTP server address? [smtp.example.com]: smtp.mailgun.org
SMTP port? [587]: 587
SMTP user name? [user@example.com]: postmaster@mg.reboil.com
SMTP password? [pa$$word]: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx-xxxxxxxx-xxxxxxxx
notification email address? [noreply@forum.reboil.com]:
Optional email address for Let's Encrypt warnings? (ENTER to skip) [me@example.com]: baltakatei@gmail.com
Optional Maxmind License key (ENTER to continue without MAXMIND GeoLite2 geolocation database) [1234567890123456]:
Read verification message:
Does this look right?
Hostname : forum.reboil.com
Email : baltakatei@gmail.com
SMTP address : smtp.mailgun.org
SMTP port : 587
SMTP username : postmaster@mg.reboil.com
SMTP password : xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx-xxxxxxxx-xxxxxxxx
Notification email: noreply@forum.reboil.com
Let's Encrypt : baltakatei@gmail.com
Maxmind license: (unset)