CNAME or A dns record?


#1

So i’m getting there… my new Discourse install shows up at my DO droplet. Thanks for your help so far!

i want it to show up at rabbithole.lockquest.com (and that’s how i’ve named it in the configuration). i’m a little confused as to whether i’m supposed to configure this in my domain registrar’s A Records section, or the CNAME section? (It didn’t seem to work in the A section, i didn’t wait the 24-48 hours for it to propagate.) CNAME or A: which is it?

(and i dunno if it makes any difference, but i already have a CNAME record set for mailgun)

Thanks!


(Bhanu Sharma) #2

A record to the subdomain rabbithole pointing to your droplet IP address is what you need.

More details:

It should only take an hour or so for it to propagate if you are using modern dns providers. For better results, set the TTL value to the lowest possible (try entering 60) or whatever lower your provider suggests. It will help your A record propagate faster.


#3

Thanks!

i guess i’ll just be more patient and wait until tomorrow morning.


(Bhanu Sharma) #4

I Guess it’s done. Maybe try flushing your dns cache.
Ps: it’s a Good idea to force https :wink:


#5

Huzzah! Just checked it this morning.

What does it mean to “force https”? (eli5)


(Bhanu Sharma) #6

Once you have completed the setup wizard, You can log in and visit the admin section.
Under the settings tab, search force https there will be a setting to enable and force https sitewide.

:warning: Please ensure Your site is accessible over https before enabling force https

I’m suggesting to do that as your site was accessible over http when I tried to visit it but it is a good idea to switch it to https for better security and compatibility.


#7

My site is encrypted too:

https://lockquest.com/


(Bhanu Sharma) #8

Did you used the docker installation method to set up discourse? seems like your site rabbithole.lockquest.com is not accessible over https.


#9

i did use the docker installation method, yes, but i have not yet forced https. Is that the issue?


(Bhanu Sharma) #10

No!
The issue is that you may have ignored or forgot to fill in the letsencrypt email durng the setup process. That caused your forum to not configure https.

You may want to look at the following article:


#11

i DID ignore that. You’re right.

And the reason i ignored it is because, iirc, the prompt was “enter your Let’s Encrypt username and password.”

i installed some Let’s Encrypt certs on my sites (for the first time in my life… very proud of myself) just a couple of weeks ago.

But when i returned to the Let’s Encrypt site, there’s no… i mean, there’s no “Login” button, no registration process that i could see… and their Getting Started page launches right into ssh and CPanel and all kinds of other nonsense.

So maybe it was a disconnect between what setup was asking me for and what it appeared the Let’s Encrypt site could provide, but i skipped that step, hoping that i could revisit it later. Am i hosed now?


(Bhanu Sharma) #12

It clearly says “enter letsencrypt email”

Not really, follow the tutorial I gave above and you’re good to go.


#13

i feel super-dumb on a couple of scores.

Is it asking for an email that i am already using in conjunction with the Let’s Encrypt site, or an email that i want to use with Let’s Encrypt? i just don’t understand at which part of the process LE gets and stores my email address to use for this purpose (now or later?)

In that tutorial, it tells me to relaunch my container name. i feel extremely dumb here, but i can’t remember what my container name is. (Container of what? i’ve lost the plot entirely). Feels like i have named many, many things during this whole process. Is there somewhere i can display the container name so i know what to use?


(Felix Freiberger) #14

Discourse will automatically register an account with Let’s Encrypt for you. Just enter your address here, this is e.g. where Let’s Encrypt will send warnings when your certificate is about to expire.


(Bhanu Sharma) #15

You are supposed to run:
cd /var/discourse
./discourse-setup
and when You are greeted with that letsencrypt email field, just enter your email id there.


#16

Answering my own question:

docker ps lists the containers. My container was called “app.”


#17

Bhanu, that’s not what the guide you linked me to says. The guide tells me to go in and edit the yml file, and then rebuild the container. (!!)


(Bhanu Sharma) #18

This is mentioned in the third paragraph from top.


#19

Ssssssssssighhhhhhhh.


#20

Anyway, back to the original problem:

When you go through the setup, it says “Let’s Encrypt account email?”

That’s the step that i originally found confusing. Not sure if it’s a wording thing, but this implies that i need a Let’s Encrypt account, and i need to enter my account email. i (knowing as little as i do) went to the site to try to register an account there, which didn’t appear to be an option, so i skipped this step.