Updates to install scripts

This commit is contained in:
root 2018-12-25 11:17:08 +01:00
parent e7357c1788
commit 1e81b8bb2f
3 changed files with 8 additions and 2 deletions

View file

@ -41,6 +41,9 @@ This will setup a publicly accessible Mailtrain instance. All endpoints (trusted
and HTTPS (on port 443). The HTTP ports just issue HTTP redirect to their HTTPS counterparts. The script below will also acquire a
valid certificate from [Let's Encrypt](https://letsencrypt.org/).
**Note,** that this will automatically accept the Let's Encrypt's Terms of Service.
Thus, by running this script below, you agree with the Let's Encrypt's Terms of Service (https://letsencrypt.org/documents/LE-SA-v1.2-November-15-2017.pdf).
1. Login as root
```
sudo -i

View file

@ -262,7 +262,7 @@ EOT
function createCertificates {
# This assumes that HTTPD is not yet running
local hostTrusted="$1"
local hostSandbox="$2"
local hostPublic="$3"
@ -275,7 +275,7 @@ function createCertificates {
firewall-cmd --add-port=80/tcp
fi
certbot certonly --email "${email}" --standalone -n -d "${hostPublic}" -d "${hostTrusted}" -d "${hostSandbox}"
certbot certonly --agree-tos --email "${email}" --standalone -n -d "${hostPublic}" -d "${hostTrusted}" -d "${hostSandbox}"
# Install cron
echo "0 3 * * * /usr/bin/certbot certonly --apache -n -d \"${hostPublic}\" -d \"${hostTrusted}\" -d \"${hostSandbox}\"" > crontab

View file

@ -27,6 +27,9 @@ a reverse HTTPS proxy using Apache HTTPD, sets up firewall rules, and obtains a
You have to allocate three endpoints for Mailtrain - trusted (admin UI), sandbox (editors for templates), public (subscription forms and archive).
These endpoints have to differ in hostname. It's fine to host them all from one IP address. The email parameters is needed by certbot.
Note, that this will automatically accept the Let's Encrypt's Terms of Service.
Thus, by running this script below, you agree with the Let's Encrypt's Terms of Service (https://letsencrypt.org/documents/LE-SA-v1.2-November-15-2017.pdf).
Example: install-centos7-https.sh mailtrain.example.com sbox.mailtrain.example.com lists.example.com admin@example.com
EOF