How to Install Discourse on Alibaba Cloud Using DirectMail and CDN


Step 1: Setting Up Domain Name

Step 2: Setting Up Alibaba Cloud CDN

Adding the CDN domain

Installing the SSL Certificate for CDN

Setting Back-to-Source Host

Setting the CORS HTTP header

Step 3: Get DirectMail SMTP Credentials

Add Sender Domain

Add Sender Email Address

Set SMTP password

Step 4: Running the Discourse Installer

ssh root@
sudo apt-get update && apt-get upgrade -y
sudo -s

Install Docker

Install Git

apt-get install git

Download Discourse Installer

mkdir /var/discourse
git clone /var/discourse
cd /var/discourse

Run Discourse installer

Hostname for your Discourse? []:  Email address for admin account(s)? [,]:  SMTP server address? []:  SMTP port? [587]:  SMTP user name? []:  SMTP password? [pa$$word]:  Let's Encrypt account email? (ENTER to skip) []:

Step 5: Setting Up Alibaba Cloud CDN

cd /var/discourse
nano containers/app.yml
./launcher rebuild app




Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store