Setting up Let’s Encrypt with Multiple Domains

If you do not have https configured already (you do if you have done a standard install recently) see Setting up Let’s Encrypt as your first step,

Step 1 - letsencrypt

It’s pretty simple really, add something like the following to your app.yml hooks section:

    - replace:
        filename: "/etc/runit/1.d/letsencrypt"
        from: /--keylength/
        to: "-d -d -d -d --keylength"

If you just want to have https configured for a second domain that will redirect to the correct one (e.g., your forum is and you want people who visit be redirected without a certificate error), that’s all you need.

Discourse + Let's Encrypt w/ multiple hostnames
Problem in installing Let's Encrypt SSL for www and non-www
Making 'www' work with Discourse
LetsEncrypt working without www, not with www
Full site CDN acceleration for Discourse
Two domains, conditional redirect
How to setup 301 redirect -non-www to www
Let’s Encrypt + non-www > www
Best way to add a 301 redirect
Redirect single/multiple domain(s) to your Discourse instance
Setup discourse for the main site ( not on a subdomain
How to create 301 redirect to a new domain
How to add ssl to non-www domain?
New domain new server and 301 redirect
Is anyone here using their Discourse instance as their entire website?
Able to receive e-mail in mail-receiver but NOT in Discourse?
I can't access after installing
Issue with app.yml file update
Setting up Discourse
PEM_read_bio_X509_AUX() failed (SSL: error:0909006C:PEM routines:get_name:no start line:Expecting: TRUSTED CERTIFICATE)
Migrating site from Personal vmware server to VPS
Adding www. to Domain
Invalid certificate name when using www
New install fails on Ubuntu 20.04.3 LTS
Discourse Setup Error
Discourse droplet unreachable on 80,443 ports after installation on Ubuntu 20.04 OK, but NOT
About force www to non www
Why is the Apple Touch Icon loaded via HTTP instead of HTTPS?
Forum went down, then certificate renew error regarding firewall configuration?
DNS Settings for Digital Ocean Droplet - Root Domain?
DNS Settings for Digital Ocean Droplet - Root Domain?
SSL working on root, but not on www
Facebook login was flagged as non compliant by Facebook after change to Let's Encrypt certificate system
Correct DNS records to set when Discourse is hosted on WWW subdomain?
Discourse not accessible - SSL Issue
After activating HTTPS Discourse doesn´t work
Letsencrypt issued on every build?
DO Storage and uploaded backups not showing
Non www to www without certificate error
Non www to www without certificate error
Connection Timeout/Security Issue
Let's Encrypt Limit (again)
Problem in installing Let's Encrypt SSL for www and non-www
Port issue - Please help
Infinite 301 redirect with reverse proxy setup