We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0687067 commit 7f8d8b9Copy full SHA for 7f8d8b9
templates/web.letsencrypt.ssl.template.yml
@@ -78,8 +78,15 @@ run:
78
LETSENCRYPT_DIR="/shared/letsencrypt"
79
/usr/sbin/nginx -c /etc/nginx/letsencrypt.conf
80
81
+ extra_domains() {
82
+ if [ -n "$DISCOURSE_HOSTNAME_ALIASES" ]; then
83
+ domains=$(echo $DISCOURSE_HOSTNAME_ALIASES | sed "s/,/ -d /g")
84
+ echo "-d $domains"
85
+ fi
86
+ }
87
+
88
issue_cert() {
- LE_WORKING_DIR="${LETSENCRYPT_DIR}" ${LETSENCRYPT_DIR}/acme.sh --issue $2 -d ${DISCOURSE_HOSTNAME} --keylength $1 -w /var/www/discourse/public
89
+ LE_WORKING_DIR="${LETSENCRYPT_DIR}" ${LETSENCRYPT_DIR}/acme.sh --issue $2 -d ${DISCOURSE_HOSTNAME} $(extra_domains) --keylength $1 -w /var/www/discourse/public
90
}
91
92
cert_exists() {
0 commit comments