I’ve installed Discourse via Docker on a Ubuntu as mentioned in Set up Discourse in the cloud in under 30 minutes. The site works from localhost (ssh & port forward via putty). I’m trying to see if SSL is the reason I’m unable to access the site outside localhost via Virtual Machine’s Public IP Address or domain name (via ‘A’ records). So, here is what I’m trying to do to enable Let’s Encrypt.
cybersathya@Vaaithaaforum:/var/discourse$ sudo ./discourse-setup
Ports 80 and 443 are free for use
The configuration file containers/app.yml already exists!
. . . reconfiguring . . .
Saving old file as app.yml.2017-10-13-002911.bak
Found 3GB of memory and 1 physical CPU cores
setting db_shared_buffers = 768MB
setting UNICORN_WORKERS = 2
Hostname for your Discourse? [forum.vaaithaa.com]: forum.vaaithaa.com
Email address for admin account(s)? [email@example.com]: firstname.lastname@example.org
SMTP server address? [smtp.sendgrid.net]: smtp.sendgrid.net
SMTP port? : 587
SMTP user name? [apikey]: apikey
SMTP password? [stmp password as given by sendgrid]
Let’s Encrypt account email? (ENTER to skip) [email@example.com]: firstname.lastname@example.org
Checking your domain name . . .
WARNING:: forum.vaaithaa.com does not appear to resolve to 10.0.0.4.
LET’S ENCRYPT cannot work if their servers cannot access your host by name.
Unless you think you know why this naive check failed, DO NOT USE Let’s Encrypt.
(A typical reason for failure is an AWS server with an elastic IP.)
You should probably answer “n” at the next prompt and disable Let’s Encrypt.
Does this look right?
Hostname : forum.vaaithaa.com
Email : email@example.com
SMTP address : smtp.sendgrid.net
SMTP port : 587
SMTP username : apikey
SMTP password : [stmp password as given by sendgrid]
Let’s Encrypt : firstname.lastname@example.org
ENTER to continue, ‘n’ to try again, Ctrl+C to exit: n
IP Address (with context screenshot):