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

I tried to install metadiscource as the link says :

Set up Discourse in the cloud in under 30 minutes

result:

ideas?

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

2 Likes

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

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

1 Like

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

You should probably wipe the database:

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

thanks, change port 80, and has he corrected.

1 Like