File tree Expand file tree Collapse file tree 3 files changed +19
-6
lines changed
Expand file tree Collapse file tree 3 files changed +19
-6
lines changed Original file line number Diff line number Diff line change @@ -15,14 +15,18 @@ domain=$2
1515aliases=$3
1616mail=$4
1717
18- # LE API
19- LE_API=' https://acme-v02.api.letsencrypt.org'
20-
2118# Includes
2219source $HESTIA /func/main.sh
2320source $HESTIA /func/domain.sh
2421source $HESTIA /conf/hestia.conf
2522
23+ # LE API
24+ LE_API=' https://acme-v02.api.letsencrypt.org'
25+
26+ if [[ " $LE_STAGING " =~ ^(YES| TRUE)$ ]]; then
27+ LE_API=' https://acme-staging-v02.api.letsencrypt.org'
28+ fi
29+
2630# encode base64
2731encode_base64 () {
2832 cat | base64 | tr ' +/' ' -_' | tr -d ' \r\n='
Original file line number Diff line number Diff line change 1212# Argument definition
1313user=$1
1414
15- # LE API
16- LE_API=' https://acme-v02.api.letsencrypt.org'
17-
1815# Includes
1916source $HESTIA /func/main.sh
2017source $HESTIA /conf/hestia.conf
2118
19+ # LE API
20+ LE_API=' https://acme-v02.api.letsencrypt.org'
21+
22+ if [[ " $LE_STAGING " =~ ^(YES| TRUE)$ ]]; then
23+ LE_API=' https://acme-staging-v02.api.letsencrypt.org'
24+ fi
25+
2226# encode base64
2327encode_base64 () {
2428 cat | base64 | tr ' +/' ' -_' | tr -d ' \r\n='
Original file line number Diff line number Diff line change 1010 DocumentRoot /var/www/html/
1111 Alias /error/ /var/www/document_errors/
1212
13+ SSLEngine on
14+ SSLVerifyClient none
15+ SSLCertificateFile /usr/local/hestia/ssl/certificate.crt
16+ SSLCertificateKeyFile /usr/local/hestia/ssl/certificate.key
17+
1318</VirtualHost>
You can’t perform that action at this time.
0 commit comments