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
Best way to add a 301 redirect
Let’s Encrypt + non-www > www
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
Setting up Discourse
Migrating site from Personal vmware server to VPS
Redirect single/multiple domain(s) to your Discourse instance
New install fails on Ubuntu 20.04.3 LTS
Setup discourse for the main site ( not on a subdomain OK, but NOT
About force www to non www
Why is the Apple Touch Icon loaded via HTTP instead of HTTPS?
Facebook login was flagged as non compliant by Facebook after change to Let's Encrypt certificate system
After activating HTTPS Discourse doesn´t work
Correct DNS records to set when Discourse is hosted on WWW subdomain?
Invalid certificate name when using www
PEM_read_bio_X509_AUX() failed (SSL: error:0909006C:PEM routines:get_name:no start line:Expecting: TRUSTED CERTIFICATE)
How to create 301 redirect to a new domain
Issue with app.yml file update
Problem in installing Let's Encrypt SSL for www and non-www
Connection Timeout/Security Issue
Let's Encrypt Limit (again)
Port issue - Please help