# Setting up Discourse

**URL:** https://meta.discourse.org/t/setting-up-discourse/203873
**Category:** Self-hosting
**Created:** [September 18, 2021, 4:48am UTC](https://meta.discourse.org/t/setting-up-discourse/203873 "2021-09-18T04:48:19Z")
**Posts on this page:** 16
**Page:** 1

<div class="post-metadata">

### Author: ![Zackie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zackie/32/234230_2.png) [@Zackie](https://meta.discourse.org/u/Zackie)
#### Post date: [September 18, 2021, 4:48am UTC](https://meta.discourse.org/t/setting-up-discourse/203873/1 "2021-09-18T04:48:19Z")

</div>

Hi all! I hope you’re doing good, I’m a newbie to all of this  
I’m stuck on connecting these three **mailgun** , with my **domain** and with the **digital ocean**

-I have my Mailgun account  
-Domain (also have professional email and I want to send emails from this one )  
-Digital Ocean Account

So What I have to do

---

<div class="post-metadata">

### Author: ![itsbhanusharma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/itsbhanusharma/32/180717_2.png) [@itsbhanusharma](https://meta.discourse.org/u/itsbhanusharma)
#### Post date: [September 18, 2021, 5:40am UTC](https://meta.discourse.org/t/setting-up-discourse/203873/2 "2021-09-18T05:40:37Z")

</div>

Hi @Zackie  
Welcome to Discourse Meta.

The next logical step would be to follow this install guide:

> [discourse/docs/INSTALL-cloud.md at main · discourse/discourse · GitHub](https://github.com/discourse/discourse/blob/main/docs/INSTALL-cloud.md)

I hope it helps.

---

<div class="post-metadata">

### Author: ![Zackie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zackie/32/234230_2.png) [@Zackie](https://meta.discourse.org/u/Zackie)
#### Post date: [September 18, 2021, 6:27am UTC](https://meta.discourse.org/t/setting-up-discourse/203873/3 "2021-09-18T06:27:43Z")

</div>

I am getting an error while installing discourse

 ![image](https://global.discourse-cdn.com/meta/original/3X/a/6/a6cbc52f36fe39eb555b4cb536f1e6cf17c53082.png)

port 443 of computer does not appear to be accessible using hostname: [example.com](http://example.com)

but A connection to port 80 succeeds!  
This means DNS settings are correct!

What should I do now ?

---

<div class="post-metadata">

### Author: ![itsbhanusharma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/itsbhanusharma/32/180717_2.png) [@itsbhanusharma](https://meta.discourse.org/u/itsbhanusharma)
#### Post date: [September 18, 2021, 7:15am UTC](https://meta.discourse.org/t/setting-up-discourse/203873/4 "2021-09-18T07:15:37Z")

</div>

Is there a firewall blocking comms on port 443?

You can check the DigitalOcean firewall and your VPS’ firewall to see if that’s the case

---

<div class="post-metadata">

### Author: ![Zackie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zackie/32/234230_2.png) [@Zackie](https://meta.discourse.org/u/Zackie)
#### Post date: [September 18, 2021, 7:19am UTC](https://meta.discourse.org/t/setting-up-discourse/203873/5 "2021-09-18T07:19:59Z")

</div>

How do I check that? 😄

---

<div class="post-metadata">

### Author: ![Zackie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zackie/32/234230_2.png) [@Zackie](https://meta.discourse.org/u/Zackie)
#### Post date: [September 18, 2021, 7:23am UTC](https://meta.discourse.org/t/setting-up-discourse/203873/6 "2021-09-18T07:23:14Z")

</div>

I also talked with the domain company and they told me to wait as it can take 24-48 hours to propagate properly. Maybe It will fix the issue

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [September 18, 2021, 7:30am UTC](https://meta.discourse.org/t/setting-up-discourse/203873/7 "2021-09-18T07:30:32Z")

</div>

I think it’s easier to install discourse on a subdomain, so [www.example.com](http://www.example.com) (or [forum.example.com](http://forum.example.com), etc) rather than the root of ‘[example.com](http://example.com)’.

---

<div class="post-metadata">

### Author: ![Zackie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zackie/32/234230_2.png) [@Zackie](https://meta.discourse.org/u/Zackie)
#### Post date: [September 18, 2021, 7:33am UTC](https://meta.discourse.org/t/setting-up-discourse/203873/8 "2021-09-18T07:33:02Z")

</div>

but I want to install it on the main domain

---

<div class="post-metadata">

### Author: ![Zackie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zackie/32/234230_2.png) [@Zackie](https://meta.discourse.org/u/Zackie)
#### Post date: [September 18, 2021, 7:44am UTC](https://meta.discourse.org/t/setting-up-discourse/203873/10 "2021-09-18T07:44:55Z")

</div>

How do I delete the configuration file containers/app.yml already exists!  
and install again ??

 ![image](https://global.discourse-cdn.com/meta/original/3X/0/c/0c4d0452fb38cc2a23c1e514922559b7a0d65d51.png)

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [September 18, 2021, 9:53am UTC](https://meta.discourse.org/t/setting-up-discourse/203873/11 "2021-09-18T09:53:44Z")

</div>

You can just run setup again

---

<div class="post-metadata">

### Author: ![Zackie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zackie/32/234230_2.png) [@Zackie](https://meta.discourse.org/u/Zackie)
#### Post date: [September 18, 2021, 9:55am UTC](https://meta.discourse.org/t/setting-up-discourse/203873/12 "2021-09-18T09:55:26Z")

</div>

Thanks.. I’ve done the setup but my website it was fine but after 20-30 mins it showing this

 ![image](https://global.discourse-cdn.com/meta/original/3X/0/4/04130d1ce7a3e1817c9636ff82501df1c4dd596f.png)

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [September 18, 2021, 10:00am UTC](https://meta.discourse.org/t/setting-up-discourse/203873/13 "2021-09-18T10:00:29Z")

</div>

That may be a letsencrypt issue. I found this tip quite useful to certify both www and non-www:

> [@Set up Let’s Encrypt with multiple domains / redirects](https://meta.discourse.org/t/setting-up-let-s-encrypt-with-multiple-domains/56685):
>
> NOTE: @pfaffman says: This page needs to be cleaned up. There is now a new ENV setting that will let you add more hostnames. In your app.yml under your DISCOURSE\_HOSTNAME line (it can go many places but that one makes sense), add DISCOURSE\_HOSTNAME\_ALIASES: domain.com,other.domain.com and early reports suggest that you’ll get valid certs for those domains and that accessing https://domain.com will properly redirect you to your DISCOURSE\_HOSTNAME without a certificate error. If you do that an…

---

<div class="post-metadata">

### Author: ![Zackie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zackie/32/234230_2.png) [@Zackie](https://meta.discourse.org/u/Zackie)
#### Post date: [September 18, 2021, 10:02am UTC](https://meta.discourse.org/t/setting-up-discourse/203873/14 "2021-09-18T10:02:17Z")

</div>

but I have done a [standard install](https://meta.discourse.org/t/142537?silent=true) recently and it shows https

 ![image](https://global.discourse-cdn.com/meta/original/3X/8/c/8c9bccb84e6a20c098fce827eedee2dca407f106.png)

also I’m not using multiple domain or sub domain .. It’s on my main domain

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [September 18, 2021, 10:13am UTC](https://meta.discourse.org/t/setting-up-discourse/203873/15 "2021-09-18T10:13:26Z")

</div>

The box says it’s not secure?

To amend your app.yml:

```plaintext
cd /var/discourse
nano containers/app.yml

```

Then use the arrow keys to navigate to the right section, and follow the instructions in the quoted post above.

If it doesn’t work, you can edit it out of your app.yml afterwards, and we can try something else. 🙂

---

<div class="post-metadata">

### Author: ![Zackie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zackie/32/234230_2.png) [@Zackie](https://meta.discourse.org/u/Zackie)
#### Post date: [September 18, 2021, 10:22am UTC](https://meta.discourse.org/t/setting-up-discourse/203873/16 "2021-09-18T10:22:08Z")

</div>

Thanks for the help MAn .. problem was something else .. I had an “A” record in my dns which was forwarding to “parked domain” and that why it was giving this error.

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [September 18, 2021, 11:09am UTC](https://meta.discourse.org/t/setting-up-discourse/203873/17 "2021-09-18T11:09:56Z")

</div>

No worries. 🙂 Glad you got it working. 👍
