# I have a broken CDN, how do I fix it?

**URL:** https://meta.discourse.org/t/i-have-a-broken-cdn-how-do-i-fix-it/42925
**Category:** Self-hosting
**Created:** [April 21, 2016, 5:44am UTC](https://meta.discourse.org/t/i-have-a-broken-cdn-how-do-i-fix-it/42925 "2016-04-21T05:44:40Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![Felipe\_Morales](https://avatars.discourse-cdn.com/v4/letter/f/94ad74/32.png) [@Felipe\_Morales](https://meta.discourse.org/u/Felipe_Morales)
#### Post date: [April 21, 2016, 5:44am UTC](https://meta.discourse.org/t/i-have-a-broken-cdn-how-do-i-fix-it/42925/1 "2016-04-21T05:44:41Z")

</div>

I tried to install metadiscource as the link says :

Set up Discourse in the cloud in under 30 minutes

result:

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

ideas?

---

<div class="post-metadata">

### Author: ![mpalmer](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mpalmer/32/45740_2.png) [@mpalmer](https://meta.discourse.org/u/mpalmer)
#### Post date: [April 21, 2016, 5:59am UTC](https://meta.discourse.org/t/i-have-a-broken-cdn-how-do-i-fix-it/42925/2 "2016-04-21T05:59:41Z")

</div>

Perhaps don’t make your CDN address `discourse-cdn.example.com`, since I’m guessing you don’t own that domain?

---

<div class="post-metadata">

### Author: ![Felipe\_Morales](https://avatars.discourse-cdn.com/v4/letter/f/94ad74/32.png) [@Felipe\_Morales](https://meta.discourse.org/u/Felipe_Morales)
#### Post date: [April 21, 2016, 1:44pm UTC](https://meta.discourse.org/t/i-have-a-broken-cdn-how-do-i-fix-it/42925/3 "2016-04-21T13:44:49Z")

</div>

without CDN

app.yml

```
## which TCP/IP ports should this container expose?
## If you want Discourse to share a port with another webserver like Apache or nginx,
## see https://meta.discourse.org/t/17247 for details
expose:
  - "3000:3000" # http
  - "443:443" # https

 ## TODO: List of comma delimited emails that will be made admin and developer
  ## on initial signup example 'user1@example.com,user2@example.com'
  DISCOURSE_DEVELOPER_EMAILS: 'zerodump2@gmail.com'
  ## TODO: The domain name this Discourse instance will respond to
  DISCOURSE_HOSTNAME: 'huelen.diinf.usach.cl'

  ## TODO: The SMTP mail server used to validate new accounts and send notifications
  DISCOURSE_SMTP_ADDRESS: smtp.gmail.com # required
  DISCOURSE_SMTP_PORT: 465 # (optional, default 587)
  DISCOURSE_SMTP_USER_NAME: xxxxxxx # required
  DISCOURSE_SMTP_PASSWORD: xxxxxx # required, WARNING the char '#' in pw can cause problems!
  DISCOURSE_SMTP_ENABLE_START_TLS: true # (optional, default true)

 ## The CDN address for this Discourse instance (configured to pull)
  ## see https://meta.discourse.org/t/14857 for details
  ## DISCOURSE_CDN_URL: //discourse-cdn.example.huelen.diinf.usach.cl

```

 ![](https://global.discourse-cdn.com/meta/original/3X/2/f/2f6d039c4f5d6984c872c3827144e9267ea5dc8e.png)

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [April 21, 2016, 8:48pm UTC](https://meta.discourse.org/t/i-have-a-broken-cdn-how-do-i-fix-it/42925/4 "2016-04-21T20:48:17Z")

</div>

Port 3000 is not supported, in fact, no custom ports are supported for a production (non development) install. You have a broken install.

---

<div class="post-metadata">

### Author: ![Felipe\_Morales](https://avatars.discourse-cdn.com/v4/letter/f/94ad74/32.png) [@Felipe\_Morales](https://meta.discourse.org/u/Felipe_Morales)
#### Post date: [April 21, 2016, 9:24pm UTC](https://meta.discourse.org/t/i-have-a-broken-cdn-how-do-i-fix-it/42925/5 "2016-04-21T21:24:33Z")

</div>

you say you have to install it again, or would suffice to change the port on app.yml , and apply a rebuild.

---

<div class="post-metadata">

### Author: ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)
#### Post date: [April 21, 2016, 9:43pm UTC](https://meta.discourse.org/t/i-have-a-broken-cdn-how-do-i-fix-it/42925/6 "2016-04-21T21:43:15Z")

</div>

You should probably wipe the database:

```plaintext
rm -rf /var/discourse/shared/standalone/postgres*

```

---

<div class="post-metadata">

### Author: ![Felipe\_Morales](https://avatars.discourse-cdn.com/v4/letter/f/94ad74/32.png) [@Felipe\_Morales](https://meta.discourse.org/u/Felipe_Morales)
#### Post date: [April 22, 2016, 1:47am UTC](https://meta.discourse.org/t/i-have-a-broken-cdn-how-do-i-fix-it/42925/7 "2016-04-22T01:47:21Z")

</div>

thanks, change port 80, and has he corrected.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [April 22, 2016, 3:32am UTC](https://meta.discourse.org/t/i-have-a-broken-cdn-how-do-i-fix-it/42925/8 "2016-04-22T03:32:09Z")

</div>


